【发布时间】:2014-09-14 17:39:53
【问题描述】:
在网上搜索了很久,我决定发布我的问题。我必须向 SAML 响应对象添加自定义属性及其值(在我的情况下为客户合同编号)并将其发送给 SP。下面是 SP 元数据中名为“POLICE”的合同编号属性:
<md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:AssertionConsumerService index="0" Location="POST_url_of_the saml_Response" Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" isDefault="true"/>
<md:AttributeConsumingService index="0">
<md:ServiceName xml:lang="en">AttributeContract</md:ServiceName>
<md:RequestedAttribute Name="ROLES"/>
<md:RequestedAttribute Name="POLICE"/>
</md:AttributeConsumingService>
</md:SPSSODescriptor>
如何使用 OpenAM SAML 服务在我的 Web 应用程序中创建超链接? 我有 OpenAM 10 作为 IDP。
【问题讨论】:
-
你说得不清楚。您想向 SP 发送一个属性。但是这个超链接和它有关系吗?
-
感谢 Stefan 在用户通过我的 sso 服务器 (idp) 进行身份验证后,他在我的 Web 应用程序中有一些链接可以查看有关他的合同号的一些信息。合同编号(数字)应该是属性“POLICE”(参见上面的 sp 元数据)。合同号是由 sp 托管的资源。如何自定义链接以在我的 Saml 响应中包含合同号?再次感谢!!
标签: jsp jakarta-ee servlets saml-2.0 openam