Closed kleindev closed 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);
Greetings,
it is, in fact this flow has nothing to do with Basic auth, instead it utilizes Claims Based scheme.
Basic
Claims Based
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);