As of version 2.2 Tyk allows context variables to be injected into headers using the
To enable context variables, you must first enable them in your API Definition.
The context variables that are available are:
request_data: If the inbound request contained any query data or form data, it will be available in this object, for the header injector, Tyk will format this data as
path_parts: The components of the path, split on
/, these values are made available in the format of a comma delimited list.
token: The inbound raw token (if bearer tokens are being used) of this user.
path: The path that is being requested.
remote_addr: The IP address of the connecting client.
$jwt_claims_CLAIMNAME– If JWT tokens are being used (not OIDC Middleware), then each claim in the JWT is available in this format to the context processor.