Search code examples
phpsingle-sign-onsamlsimplesamlphp

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.

I installed SimpleSAMLphp in the server. Then I've set the IdP as https://openidp.feide.no and the entityID SP as the 3rd party server. 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

Using SimpleSAMLphp, how can I do this? Thanks in advance


Solution

  • You do not need to set up an IdP yourself if you are using an upstream IdP, such as Feide OpenIdP. Just register the urls from the 3rd party server's metadata directly in OpenIdP.