配置ADFS 3.0 / SAML 2.0以与Spring Security配合使用以进行SSO集成

编程入门 行业动态 更新时间:2024-10-28 08:23:53
本文介绍了配置ADFS 3.0 / SAML 2.0以与Spring Security配合使用以进行SSO集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

从这里开始,我遵循了第12.0章关于将spring和adfs用作IdP的说明: docs.spring.io/spring-security-saml/docs/1.0.x-SNAPSHOT/reference/pdf/spring-security-saml -reference.pdf

但是我在测试SSO时有一个例外:

org.opensamlmon.SAMLException:NameID元素必须作为主题的一部分出现在响应消息中,请在IDP配置

我按照文档中的描述添加了规则NameID。 我们在一台服务器上使用ADFS 3.0,在另一台Linux服务器上使用Tomcat,但我认为这不会对此产生影响... 我找不到解决方法,有人(@vschafer?)有建议吗?

预先感谢!

解决方案

终于找到了解决方案:由于我们的ADFS服务器使用其他声明提供者,因此必须将规则类型设置为通过或过滤传入的声明。

更多信息: technet.microsoft/zh-CN/library/dd807060(v = ws.10).aspx

I followed chapter 12.0 instructions about using spring with adfs as IdP from here : docs.spring.io/spring-security-saml/docs/1.0.x-SNAPSHOT/reference/pdf/spring-security-saml-reference.pdf

But I have an exception when I test the SSO :

org.opensamlmon.SAMLException: NameID element must be present as part of the Subject in the Response message, please enable it in the IDP configuration

I added the rule NameID as described in the document. We use ADFS 3.0 on a server and Tomcat on another Linux server, but I don't think it has an impact on this... I can't find a way to resolve it, is someone (@vschafer ?) has a suggestion ?

Thanks in advance !

解决方案

Finally found the solution : I had to set Rule Type as "Pass through or filter an incoming claim" because our ADFS server uses others claim providers.

More info: technet.microsoft/en-us/library/dd807060(v=ws.10).aspx

更多推荐

配置ADFS 3.0 / SAML 2.0以与Spring Security配合使用以进行SSO集成

本文发布于:2023-11-24 03:04:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623740.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SAML   ADFS   SSO   Security   Spring

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!