Created
December 3, 2024 07:27
-
-
Save rosskukulinski/9f6d08d9059a15670a67fbeeb92a55f0 to your computer and use it in GitHub Desktop.
prefunction plugin to log Konnect portal application info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config: | |
access: [] | |
body_filter: [] | |
certificate: [] | |
functions: [] | |
header_filter: [] | |
log: | |
- >- | |
kong.log.set_serialize_value("consumer.application.id", | |
kong.request.get_header("X-Application-ID")); | |
kong.log.set_serialize_value("consumer.application.developer-id", | |
kong.request.get_header("X-Application-Developer-ID")); | |
kong.log.set_serialize_value("consumer.application.org-id", | |
kong.request.get_header("X-Application-Org-ID")); | |
kong.log.set_serialize_value("consumer.application.portal-id", | |
kong.request.get_header("X-Application-Portal-ID")); | |
rewrite: [] | |
ws_client_frame: [] | |
ws_close: [] | |
ws_handshake: [] | |
ws_upstream_frame: [] | |
enabled: true | |
id: e2f067e4-f459-4f84-ba6f-e0d72a970f1f | |
name: pre-function | |
protocols: | |
- grpc | |
- grpcs | |
- http | |
- https | |
- ws | |
- wss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment