【发布时间】:2015-02-28 14:11:41
【问题描述】:
我正在为 SSO 集成 ADFS 中的 Spring saml Extension。我使用 ADFS2.0 作为 IDP,并为 Spring 应用程序生成元数据并将元数据导入 ADFS。我会将电子邮件地址和显示名称传递给 Spring 应用程序。
这是我在 ADFS 中设置的声明规则。
1 获取属性
c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"]
=> issue(store = "Active Directory", types = ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"), query = ";displayName,mail;{0}", param = c.Value);
2 发送电子邮件地址作为姓名 ID
c:[类型 == “http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress”] =>问题(类型=“http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier”, 发行人 = c.Issuer,OriginalIssuer = c.OriginalIssuer,价值 = c.Value, ValueType = c.ValueType, 属性[“http://schemas.xmlsoap.org/ws/2005/05/identity/claimproperties/format”] = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress");
我可以登录 Spring 应用程序。在一般信息中,信息是正确的。但在校长的属性部分。属性的值变为 org.opensaml.xml.schema.impl.XSAnyImpl@5abb6d06 和 org.opensaml.xml.schema.impl.XSAnyImpl@46f2d373。
有人知道为什么会这样吗?我该如何解决?
非常感谢。
【问题讨论】:
-
您使用的是什么版本的 Spring SAML?
-
spring-security-saml-1.0.0.RC2
标签: spring-security saml adfs spring-saml