简体   繁体   English

使用SAML oneLogin代码以iDP连接到ADFS时响应错误

[英]Error in response while using SAML oneLogin code to connect to ADFS as iDP

We are able to login to the ADFS iDP through the saml OneLogin java application. 我们可以通过saml OneLogin Java应用程序登录到ADFS iDP。 we have followed below steps to Edit the Claim rules of Relying Party(ADFS) to: 我们已按照以下步骤将依赖方的索赔规则(ADFS)编辑为:

  • enable return of email address in response. 启用返回电子邮件地址作为响应。
  • Right-click on the relying party trust and select Edit Claim Rules…. 右键单击依赖方信任,然后选择“编辑声明规则”。
  • On the Issuance Transform Rules tab select Add Rules…. 在“发行转换规则”选项卡上,选择“添加规则…”。
  • Select Send LDAP Attribute as Claims as the claim rule template to use. 选择“将LDAP属性发送为声明”作为要使用的声明规则模板。
  • Give the claim a name such as NameID. 为声明指定名称,例如NameID。
  • Set the Attribute Store to Active Directory, the LDAP Attribute to E-Mail-Addresses, and the Outgoing Claim Type to E-mail Address. 将“属性存储”设置为“ Active Directory”,将“ LDAP属性”设置为“电子邮件地址”,将“外发声明类型”设置为“电子邮件地址”。
  • Select Finish. 选择完成。
  • Select Add Rule…. 选择添加规则...。
  • Select Transform an Incoming Claim as the claim rule template to use. 选择“转换传入的索赔”作为要使用的索赔规则模板。
  • Give it a name such as Email to NameID. 给它起一个名字,例如Email to NameID。 Incoming claim type should be E-mail Address and the Outgoing name ID format is Email. 传入的声明类型应为“电子邮件地址”,传出名称ID格式为“电子邮件”。
  • Check Pass through all claim values and click Finish. 选中通过所有索赔值,然后单击完成。

But it gives below exception: 但是它给出了以下异常:

Microsoft.IdentityServer.Protocols.Saml.InvalidNameIdPolicyException: MSIS7070: The SAML request contained a NameIDPolicy that was not satisfied by the issued token. Microsoft.IdentityServer.Protocols.Saml.InvalidNameIdPolicyException:MSIS7070:SAML请求包含一个已发行令牌不满足的NameIDPolicy。 Requested NameIDPolicy: AllowCreate: True Format: urn:oasis:names:tc:SAML:1.1:nameid-format: emailAddress SPNameQualifier: . 请求的NameIDPolicy:AllowCreate:True格式:urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress SPNameQualifier:。 Actual NameID properties: null. 实际的NameID属性:null。

Please advice how to resolve this error. 请建议如何解决此错误。 Thanks for your help. 谢谢你的帮助。

I have resolved this exception. 我已经解决了这个例外。 It required to add email address in the properties of Active Directory Users and Computers on ADFS server. 它要求在ADFS服务器上的Active Directory用户和计算机的属性中添加电子邮件地址。 Also, the NameID format property should be set as "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" Thanks everyone for your support. 另外,NameID格式属性应设置为“ urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress”谢谢大家的支持。 Hopefully, this might help someone. 希望这可以对某人有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM