简体   繁体   English

具有不同IDP的多个SSO集成

[英]Multiple SSO integration with different idp

I am new to this all SSO thing and I am using grails-plugin to integrate multiple IDP in my application. 我对这一切都是新手,我正在使用grails-plugin将多个IDP集成到我的应用程序中。 For single IDP it works fine but when I try to add more than one IDP it gives me error like 对于单个IDP,它可以正常工作,但是当我尝试添加多个IDP时,它给我类似的错误

Servlet.service() for servlet [default] in context with path [] threw exception [org.opensaml.saml2.metadata.provider.MetadataProviderException: Metadata for entity <entityID> and role {urn:oasis:names:tc:SAML:2.0:metadata}IDPSSODescriptor wasn't found] with root cause Message: Metadata for entity <entityID> and role {urn:oasis:names:tc:SAML:2.0:metadata}IDPSSODescriptor wasn't found

It doesn't matter which IDP I use, only the last entry works and for rest of them it gives me the same error. 我使用哪个IDP都没有关系,只有最后一个条目有效,而对于其他条目,它会给我同样的错误。

It seems it takes the sp alias and save the last entry for it and serve for that. 似乎它采用了sp别名并​​为其保存了最后一个条目并为此服务。

Also, in logs I get Index for AssertionConsumerService not specified, returning default if it is of any help. 另外,在日志中,我得到Index for AssertionConsumerService not specified, returning default如果有帮助Index for AssertionConsumerService not specified, returning default

I know it takes the correct idp as it shows in the logs context.SAMLContextProviderImpl - Using user specified IDP <entityID> from request 我知道它采用了日志上下文中显示的正确idp.SAMLContextProviderImpl- context.SAMLContextProviderImpl - Using user specified IDP <entityID> from request

Please help I am stuck on this for long 请帮助我长期坚持

Solved it, I was using mulitple idp files but all idp files should be in a single file and should be under EntitiesDescriptor root tag. 解决了这个问题,我使用了多个idp文件,但是所有idp文件都应该在一个文件中,并且应该在EntitiesDescriptor根标记下。 Missed that part. 错过了那部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM