Push user SAML attributes to backend service via WSO2 API Manager

醉酒当歌 提交于 2019-12-12 03:22:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!