vgrem / phpSPO

Microsoft 365 Library for PHP.
MIT License
360 stars 117 forks source link

Consume SP API after Single Sign On #169

Open antrecu opened 4 years ago

antrecu commented 4 years ago

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!

koltyakov commented 4 years ago

Hi @antrecu,

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

fabio-carvalho88 commented 3 years ago

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