In a Moodle 3.3 installation, I am trying to configure Oauth2 with Microsoft Office365.
I have a dedicated account for that purpose, and I configured the Oauth2 service without errors according to the guide: https://docs.moodle.org/all/en/Service_OAuth_2_Microsoft
The problem I have is when I want to connect Moodle with Office365, it returns the error:
error / Could not upgrade oauth token
I was searching on Google and I did not find any reference that could help me.
I validated the secret and the client id several times, to make sure they are correct.
I tried to configure and unconfigure several times, create the secret key several times and always return the same error.
I did not find errors in the related logs.
Can you please help me to solve this problem?
Thank you,