phpSPO icon indicating copy to clipboard operation
phpSPO copied to clipboard

External Single Sign On for SPO

Open ghost opened this issue 7 years ago • 1 comments

Hello,

we are using this Class to check SPO Credentials of our Clients and direct them to their "personal" SPO area.

Actually our Clients need to Sign in on our Website (authentification via SPO) and than we Redirect them to the "personal" SharePoint (for example Company.sharepoint.com/customer1). - On this Page they need to Login again (SharePoint Online Authentification itself).

We tried to redirect / pass the Login of our form into the Login.aspx of SPO. But this dont work. We also tried to use an Iframe and Javascript - didnt work either.

Any ideas how to realise an external single sign on ?

Thank you!

ghost avatar Feb 03 '17 13:02 ghost

I think I had a similar issue and that I had to solve on my own.

You have to edit php-spo/src/Runtime/Auth/SamlTokenProvider.php and add the client subsite to the auth link as a Source parameter.

More detail here: https://stackoverflow.com/questions/47632797/unable-to-authenticate-in-sharepoint-api-on-subsite-using-php/47651800#47651800

Fillivan avatar Jan 26 '18 10:01 Fillivan