Microsoft authentication not working in moodle 3.6

Microsoft authentication not working in moodle 3.6

by santosh kumar -
Number of replies: 1

I have installed the oauth2 plugin for authentication with Google and Microsoft. Google is working well and authenticate properly. But Microfsoft is not working. I have read a lot of articles but not found any solution. i am using moodle 3.6

ERROR:

error/Could not upgrade oauth token

More information about this error

Debug info:
Error code: Could not upgrade oauth token
$a contents:
Stack trace:
  • line 567 of /lib/oauthlib.php: moodle_exception thrown
  • line 475 of /lib/oauthlib.php: call to oauth2_client->upgrade_token()
  • line 44 of /auth/oauth2/login.php: call to oauth2_client->is_logged_in()
Thanks
Average of ratings: -
In reply to santosh kumar

Re: Microsoft authentication not working in moodle 3.6

by James McQuillan -

Hi There, are you using Office 365 or a personal Microsoft account? If Office 365, we have the Office 365 plugin suite (https://moodle.org/plugins/local_office365) which includes the OpenID Connect authentication plugin (https://moodle.org/plugins/auth_oidc) . That should work to authenticate users who are using Office 365.