Servicio OAuth 2 Microsoft

De MoodleDocs

Nota: Urgente de Traducir. ¡ Anímese a traducir esta muy importante página !.     ( y otras páginas muy importantes que urge traducir)

Setup App In Microsoft

Para configurar un cliente OAuth 2 con Microsoft, primeramente necesitamos ingresar a Microsoft Application Console y crear una nueva App.

Crear proyecto nuevo

Nota: Si Usted previamente había registrado Aplicaciones con una API más antigua, su consola de Aplicación pdría verse diferente. en este caso Usted debería de crear una nueva "Aplicación Convergida (Converged Application)".

Crear proyecto nuevo con APIs antiguas habilitado

Elijaun buen nombre ya que esto es lo que se les mostrará a los usuarios cuando se les pida que prueben los permisos.

Nómbrelo

A continuación, Usted necesita añadir una plataforma a su aplicación.

Añadir plataforma

elegir "Plataforma web (Web platform)"

Plataforma Web

Uncheck the "Allow Implicit Flow" checkbox and set the callback URL. The callback URL should point to "your Moodle site URL + /admin/oauth2callback.php". If your Moodle site was available at https://lemon.edu/ the callback URL would be https://lemon.edu/admin/oauth2callback.php. It is important that your Moodle site uses https and not http. Microsoft will not allow the callback url if it is not using https.

Platform settings

Make sure the "Microsoft Graph Permissions" section contains the "User.Read" permission.

Permissions

Set the options for the consent screen.

Consent

Save all the details and then generate a new password.

Generate a new password

Enter the password in Moodle as the "Client secret" and the Application ID as the "Client id".

Got it

Vea también