通过 WSO2 API Manager 将用户 SAML 属性推送到后端服务 [英] Push user SAML attributes to backend service via WSO2 API Manager

查看:21
本文介绍了通过 WSO2 API Manager 将用户 SAML 属性推送到后端服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 WSO2 API Gateway 来服务 API 调用.后端要求自定义用户属性 (用户名、电子邮件等) 作为 URL 中查询字符串的一部分发送.
查询字符串对的值将在嵌入在 API 调用中的 SAML2 令牌.

中介如何访问这些自定义 SAML2 属性?

解决方案

您可以创建自定义中介器或自定义处理程序来解析 saml 标记并将其设置为标题或其他内容.请参阅Writing Custom+Handlers 了解读取标头的示例处理程序.>

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?

解决方案

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 .

这篇关于通过 WSO2 API Manager 将用户 SAML 属性推送到后端服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆