【发布时间】:2016-09-29 20:41:26
【问题描述】:
Shibboleth IDP 和 SP 谈得很好,我需要的数据在 SAML 中。
允许 shibboleth 返回包含我需要的信息的 HTTP 标头需要什么配置(是的,我知道这是个坏主意,但别无选择)。
我在 IIS 上运行 SP 2.6,需要一个带有 shibboleth3 IDP 响应中用户名的 HTTP 标头。
这是我为 attribute-map.xml 尝试过的内容
<Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" id="netId" nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"/>
它在 SAML 中为我提供了这些数据
<saml2:AttributeStatement>
<saml2:Attribute FriendlyName="eduPersonPrincipalName"
Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">me@school.edu</saml2:AttributeValue>
</saml2:Attribute>
</saml2:AttributeStatement>
由于我正在使用的软件,我需要 HTTP 标头中的用户名。
【问题讨论】:
-
您需要以某种方式解析断言,获取所需属性,并在 http 标头中发送到您的软件。
-
是的,我正试图避免编写中间件脚本,但我就在那个时候。
标签: http-headers saml saml-2.0 shibboleth