【问题标题】:Can I define attributes with non-unique names but with different NameFormats?我可以定义具有非唯一名称但具有不同 NameFormats 的属性吗?
【发布时间】:2016-03-28 13:22:11
【问题描述】:

我正在运行 Shibboleth SP(2.4.3 版),我的 attribute-map.xml 包含“邮件”的默认映射

<!-- email -->
<Attribute name="urn:mace:dir:attribute-def:mail" id="mail"/>
<Attribute name="urn:oid:0.9.2342.19200300.100.1.3" id="mail"/>

客户正在使用非 Shibboleth IdP,他们无法将 NameFormat 定义为 urn:oasis:names:tc:SAML:2.0:attrname-format:basic 以外的任何内容。 根据 Shibboleth wiki,如果 IdP 使用 urn:oasis:names:tc:SAML:2.0:attrname-format:uriurn:oasis:names:tc:SAML:2.0:attrname-format:unspecified 以外的 NameFormat,那么我必须在我自己的 attribute-map.xml 中定义 NameFormat。

我可以/应该添加第三个具有相同名称但定义了“基本”名称格式的属性节点吗?我不想破坏我与以标准 Shibboleth 方式做事的客户的现有集成。

<!-- email -->
<Attribute name="urn:mace:dir:attribute-def:mail" id="mail"/>
<Attribute name="urn:oid:0.9.2342.19200300.100.1.3" id="mail"/>
<Attribute name="urn:mace:dir:attribute-def:mail" id="mail" nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"/>

【问题讨论】:

    标签: shibboleth


    【解决方案1】:

    您可以在属性映射文件中添加任何属性,但您必须确保 idP 在使用之前发送它。 它不会影响任何现有的连接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-04
      • 1970-01-01
      • 2012-04-14
      • 1970-01-01
      • 2021-05-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多