【发布时间】:2016-05-30 17:53:59
【问题描述】:
我正在尝试 Java Tomcat SAML 的 Okta 快速入门,我对这个主题非常陌生。
当我启动我的测试应用程序时,我确实看到了一个指向 Okta IDP 的链接,在单击“开始单点登录”按钮后,我被重定向到 Okta 地址,其信息为“Sining in to SAML - Test”(我的 Okta 测试名称)之后我再次被重定向到我的应用程序:
Error
Error validating SAML message
之后有一个堆栈跟踪
Caused by: org.opensaml.common.SAMLException: Response doesn't have any valid assertion which would pass subject validation
at org.springframework.security.saml.websso.WebSSOProfileConsumerImpl.processAuthenticationResponse(WebSSOProfileConsumerImpl.java:229)
at org.springframework.security.saml.SAMLAuthenticationProvider.authenticate(SAMLAuthenticationProvider.java:82)
... 27 more
Caused by: org.opensaml.common.SAMLException: Local entity is not the intended audience of the assertion in at least one AudienceRestriction
at org.springframework.security.saml.websso.WebSSOProfileConsumerImpl.verifyAudience(WebSSOProfileConsumerImpl.java:506)
at org.springframework.security.saml.websso.WebSSOProfileConsumerImpl.verifyAssertionConditions(WebSSOProfileConsumerImpl.java:458)
at org.springframework.security.saml.websso.WebSSOProfileConsumerImpl.verifyAssertion(WebSSOProfileConsumerImpl.java:303)
at org.springframework.security.saml.websso.WebSSOProfileConsumerImpl.processAuthenticationResponse(WebSSOProfileConsumerImpl.java:214)
... 28 more
我错过了什么?我究竟做错了什么?
感谢您对 Zack 的所有帮助。
【问题讨论】:
标签: saml-2.0 spring-saml okta