【问题标题】:ADFS/SAML2.0 - How to set Claim Rules through Federation Metadata?ADFS/SAML2.0 - 如何通过联合元数据设置声明规则?
【发布时间】:2015-03-11 15:25:48
【问题描述】:

我正在尝试针对 Web 应用程序的 Windows ADFS 实施 SAML 2.0 身份验证。到目前为止,我通过手动配置依赖方信任和分配的声明规则,成功地验证并从 ADFS 获取了我需要的内容。

现在我想为我的应用程序提供联合元数据,以便更轻松地在 ADFS 中设置所需的内容。但是我不知道如何在该元数据中传递所需的声明规则。

这是我目前所拥有的:

<?xml version="1.0"?>
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="dokuwiki-entity" validUntil="2015-03-24T20:30:16Z">
  <SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol" WantAssertionsSigned="true">
    <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat>
    <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</NameIDFormat>
    <AssertionConsumerService index="1" isDefault="true" Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://perd.cosmo/dw-2014-01-13/doku.php?id=start"/>

    <AttributeConsumingService index="1">
      <ServiceName xml:lang="en">DokuWiki</ServiceName>
      <RequestedAttribute isRequired="true" Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" FriendlyName="E-Mail-Adresse" />
    </AttributeConsumingService>
  </SPSSODescriptor>
  <Organization>
    <OrganizationName xml:lang="en">DokuWiki</OrganizationName>
    <OrganizationDisplayName xml:lang="en">DokuWiki</OrganizationDisplayName>
    <OrganizationURL xml:lang="en">https://www.dokuwiki.org</OrganizationURL>
  </Organization>
</EntityDescriptor>

据我了解,RequestedAttribute 应该告诉 ADFS 在身份验证后向我发送用户的电子邮件地址。不幸的是,在使用此元数据设置信赖方信任后,未设置任何声明规则。

问题:是否可以通过元数据设置声明规则,还是必须手动完成?如果可能的话,我在哪里可以找到相应的文档?

【问题讨论】:

  • 你得到解决方案了吗?我们在这里遇到了同样的问题。

标签: active-directory saml saml-2.0 adfs


【解决方案1】:

您必须手动(或通过 powershell)设置声明规则。 ADFS 不会查看元数据的那部分。

【讨论】:

  • 啊,太糟糕了,但是当我找不到任何文档时,我也很害怕。
  • @paullem 任何提及“ADFS 不支持声明规则”的参考资料都会有所帮助
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-11-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多