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.
General developer forum
Microsoft authentication not working in moodle 3.6
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.