简体   繁体   English

如何在php中使用SAML执行SSO?

[英]How can I perform a SSO using SAML in php?

I'm having problems when developing a SSO to a 3rd party server using simplesamlphp. 使用simplesamlphp将SSO开发到第三方服务器时遇到问题。

I installed SimpleSAMLphp in the server. 我在服务器上安装了SimpleSAMLphp。 Then I've set the IdP as https://openidp.feide.no and the entityID SP as the 3rd party server. 然后,我将IdP设置为https://openidp.feide.no ,并将EntityID SP设置为第三方服务器。 I've set the metadata correctly, but the response message is an error. 我已经正确设置了元数据,但是响应消息是错误。

After checking the configuration the 3rd party sent me, I noticed that they specified that I should indicate in the subject of the xml orgdir=xxx;ecid=xxx 在检查了第三方发送给我的配置之后,我注意到他们指定我应该在xml主题中指明orgdir = xxx; ecid = xxx

Using SimpleSAMLphp, how can I do this? 使用SimpleSAMLphp,我该怎么做? Thanks in advance 提前致谢

You do not need to set up an IdP yourself if you are using an upstream IdP, such as Feide OpenIdP. 如果您使用上游IdP(例如Feide OpenIdP),则无需自己设置IdP。 Just register the urls from the 3rd party server's metadata directly in OpenIdP. 只需直接在OpenIdP中注册来自第三方服务器的元数据的url。

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

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