Open nestyxx opened 1 year ago
I finally managed to generate an "accessToken" but despite that, I can no longer read the desired calendar.
$client = new Client("outlook.office365.com", Client::VERSION_2016);
$client->authWithOauth2($accessToken);
$client->authWithUserAndPass($username, $password);
$client->setTimezone($timezone);
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