Diferencia entre revisiones de «Servicio OAuth 2 Microsoft»

De MoodleDocs
(Updated as per 3.3 page)
(tidy up)
Línea 2: Línea 2:
=== Setup App In Microsoft ===
=== Setup App In Microsoft ===


To setup  an OAuth 2 client with Microsoft, first we need to login to the [https://apps.dev.microsoft.com/#/appList Microsoft Application Console] and create a new app.
Para configurar un cliente OAuth 2 con Microsoft, primeramente necesitamos ingresar a [https://apps.dev.microsoft.com/#/appList Microsoft Application Console] y crear una nueva App.


[[Image:microsoft-1-create-new.png|none|frame|Create new project]]
[[Image:microsoft-1-create-new.png|none|frame|Crear proyecto nuevo]]


Note: If you have previously registered Applications with an older API your Application Console may look different. In this case you should create a new "Converged Application".
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)".


[[File:microsoft-1-1-alternate-app-page.png|none|frame|Create new project with older APIs enabled]]
[[File:microsoft-1-1-alternate-app-page.png|none|frame|Crear proyecto nuevo con APIs antiguas habilitado]]


Choose a good name as this is what is shown to users when they are asked to approve the permissions.  
Elijaun buen nombre ya que esto es lo que se les mostrará a los usuarios cuando se les pida que prueben los permisos.  


[[File:microsoft-2-name-it.png|none|frame|Name it]]
[[File:microsoft-2-name-it.png|none|frame|Nómbrelo]]


Next you have to add a platform to your application.  
A continuación, Usted necesita añadir una plataforma a su aplicación.  


[[File:microsoft-3-add-platform.png|none|frame|Add platform]]
[[File:microsoft-3-add-platform.png|none|frame|Añadir plataforma]]


Choose "Web platform"
elegir "Plataforma web (Web platform)"


[[File:microsoft-3.1-web-platform.png|none|frame|Web platform]]
[[File:microsoft-3.1-web-platform.png|none|frame|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.
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.

Revisión del 17:31 16 jun 2017

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