问题
I am using WSO2 API Gateway
to service API calls. The backend requires custom user attributes (username, e-mail, etc.)
to be sent as part of the query string in the URL.
The values for the query string pairs will be provided in the SAML2 token embedded in the API call.
How can a mediator access these custom SAML2 attributes?
回答1:
You can create a custom mediator or custom handler to parse the saml token and set it to a header or something . see Writing Custom+Handlers for sample handler which reads a header .
来源:https://stackoverflow.com/questions/38250035/push-user-saml-attributes-to-backend-service-via-wso2-api-manager