将自定义属性添加到SAML断言

时间:2014-09-14 17:39:54

标签: jsp java-ee servlets saml-2.0 openam

在互联网上搜索了很长时间后,我决定发布我的问题。我必须将自定义属性及其值(在我的情况下,客户端合同号)添加到SAML响应对象并将其发送到SP。下面是合约编号属性,名为" POLICE"在SP元数据中:

<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。

1 个答案:

答案 0 :(得分:0)

在OpenAM控制台中,选择SP,选项卡“联合”,“SP”选项卡,子选项卡“Assertion Procession”,将配置文件属性配置为SAML属性断言映射。

确保在数据存储配置中配置了配置文件属性。