【发布时间】:2021-12-25 09:54:55
【问题描述】:
我的 spring boot 2.5.5 应用程序具有以下结构,其中客户端请求到达服务器 A,然后转发到服务器 B,然后转发到服务器 C。
我已经使用 (spring-security-saml2-core) 实现了 Spring Security 和 AD SAML 身份验证
- Nginx (Server A) -> nginx.conf 配置为代理传递到服务器 B
- Nginx (Server B) -> nginx.conf 配置为代理传递到服务器 C
- Tomcat (Server C) -> 实际部署的 Spring Boot 应用程序
现在在 Azure AD 中,我们创建应用程序并获取实体 ID、元数据 URL 和回复 URL [https://serverA/appName],它们在我的 Spring Boot 应用程序中配置。
完成所有这些配置后,当我们从客户端访问应用程序时,我可以获得 SSO 登录页面,并且可以输入凭据。一旦我尝试登录,就会在服务器 C 日志中列出以下异常
SAML message intended destination endpoint 'https://serverA/appName/saml/SSO' did not match the recipient endpoint 'https://serverB/appName/saml/SSO'
【问题讨论】:
标签: spring-boot spring-security