You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently in a hurry on several projects that were still using basic authentication to interact with Exchange calendars. Unfortunately, Microsoft 365 has just disabled the function and I am desperately looking for a solution to identify myself otherwise (example Oauth2).
Today we use the following code:
$client = new Client($host, $username, $password, $version);
Despite several tests following all the "msgraph-sdk-php" documentation to generate a token, I couldn't identify myself. The goal is to use the existing code but only change the authentication method.
$client = new Client("outlook.office365.com", Client::VERSION_2016);
$client->authWithOauth2("your-access-token");
// $client->authWithUserAndPass($username, $password);
If anyone has an idea of how to proceed, I remain interested.
Thanks in advance for your feedback.
Alexandre
The text was updated successfully, but these errors were encountered:
Hello jamesiarmes.
I'm currently in a hurry on several projects that were still using basic authentication to interact with Exchange calendars. Unfortunately, Microsoft 365 has just disabled the function and I am desperately looking for a solution to identify myself otherwise (example Oauth2).
Today we use the following code:
Despite several tests following all the "msgraph-sdk-php" documentation to generate a token, I couldn't identify myself. The goal is to use the existing code but only change the authentication method.
If anyone has an idea of how to proceed, I remain interested.
Thanks in advance for your feedback.
Alexandre
The text was updated successfully, but these errors were encountered: