admin管理员组文章数量:1122832
I am migrating from "spring-security-saml2-core-1.0.10.RELEASE" to "spring-security-saml2-service-provider-5.8.15". My application is in spring XML configuration. I tried doing sample config based on examples given by spring-security.
I did below configuration in my security.xml.
<security:http auto-config="true"> <security:intercept-url pattern="/**" access="authenticated" /> <security:saml2-login /> <security:saml2-logout /> </security:http> <user-service> <user name="user" password="{noop}password" authorities="permitAll" /> </user-service> <relying-party-registrations> <relying-party-registration registration-id="okta" metadata-location="classpath:credentials/metadata-idp.xml"> <signing-credential certificate-location="classpath:credentials/rp-certificate.crt" private-key-location="classpath:credentials/rp-private.key" /> </relying-party-registration> </relying-party-registrations>
in OKTA IDP, i gave below data (for now, i am ignoring single logout) and assigned one user for the application
Single Sign On URL = http://localhost:2080/login/saml2/sso/okta Audience URI = http://localhost:2080/saml2/service-provider-metadata/okta
Now, when i tried accessing my application using "http://localhost:8080/test" , I am getting OKTA page to sign in. I entered my login credentials and then it is redirected to
http://localhost:2080/login/saml2/sso/okta with error as shown below
Message The requested resource [/login/saml2/sso/okta] is not available Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
[1]: .png
本文标签: Migrating SAML Extension 1010RELEASE to springsecuritysaml2serviceprovider58xStack Overflow
版权声明:本文标题:Migrating SAML Extension 1.0.10.RELEASE to spring-security-saml2-service-provider-5.8.x - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301969a1931364.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论