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
Este tema ye estau blocau asinas que no podrás responder en ell.