【发布时间】:2015-05-31 10:05:15
【问题描述】:
我使用 ssocircle 作为我的 IDP。 如何获取用户名作为响应任何代码示例都会有所帮助。 我的 saml 请求如下。
<saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
AssertionConsumerServiceURL="http://localhost:38080/ICDWeb/saml/SSO"
Destination="https://idp.ssocircle.com:443/sso/SSORedirect/metaAlias/ssocircle"
ForceAuthn="false"
ID="a3h6ehei2fjhghi3240a10e2ad03ifj"
IsPassive="false"
IssueInstant="2015-03-27T06:12:49.597Z"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Version="2.0"
>
<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">http://172.16.246.146:38080:ICDWeb/saml/metadata</saml2:Issuer>
</saml2p:AuthnRequest>
【问题讨论】:
-
我收到邮件 ID 作为委托人,但我需要用户名
-
您需要做什么才能让 SSO Circle 将用户名作为主体发送给您?
-
在上传 SP 元数据时,您可以勾选用户 ID 复选框,您可以在 ssocircle 元数据上传页面找到该复选框。这将在用户 id 属性的 saml 响应中向您发送断言中的用户名。
标签: spring-saml