phpSPO icon indicating copy to clipboard operation
phpSPO copied to clipboard

Consume SP API after Single Sign On

Open antrecu opened this issue 5 years ago • 2 comments

Hi,

Thanks for your library it really its a piece of work, I used it in the past and had great results! but now i have a new requirement that I hope you can put me into the right direction. Currently i have a PHP Site that authenticates my users through single-sign-on and what i need to achieve is consume the Sharepoint API using their credentials and not using a hardcoded username/password combination which is how i implemented your library. Is there a way to authenticate and consume SP services using your library? and if so, what should be the parameters to take into account? Consider that i could get the username as an attribute coming from SSO but not really the password. The service provided is Office 365 so i think im in the same scope of sharepoint.

Thanks in advance for your help!

antrecu avatar Feb 10 '20 20:02 antrecu

Hi @antrecu,

For the user context, you should better rely on ADAL/MSAL based solution rather than passing user credentials to a backend somehow.

koltyakov avatar Feb 12 '20 14:02 koltyakov

Hello! Did you find a way to solve your problem? Thanks!

fabio-carvalho88 avatar Apr 01 '21 09:04 fabio-carvalho88