vgrem / phpSPO

Microsoft 365 Library for PHP.
MIT License
357 stars 115 forks source link

Will UserCredentials be supported after Basic Auth is disabled? #311

Closed kleindev closed 1 year ago

kleindev commented 1 year ago

Is the following code snippet still valid after Microsoft disables basic auth for SharePoint Online?

use Office365\Runtime\Auth\UserCredentials; use Office365\SharePoint\ClientContext;

$credentials = new UserCredentials("{userName}", "{password}"); $ctx = (new ClientContext("{siteUrl}"))->withCredentials($credentials);

vgrem commented 1 year ago

Greetings,

it is, in fact this flow has nothing to do with Basic auth, instead it utilizes Claims Based scheme.