Diferencia entre revisiones de «Autenticación OAuth 2»
(tidy up) |
(Updated as per 3.3 page) |
||
Línea 1: | Línea 1: | ||
{{Autenticación}}{{Nuevas características de Moodle 3.3}} | {{Autenticación}}{{Nuevas características de Moodle 3.3}} | ||
{{Urgente de traducir}} | {{Urgente de traducir}} | ||
[[File:oauth 2 auth.png|thumb|Login page with options to log in with an OAuth 2 service]] | [[File:oauth 2 auth.png|thumb|Login page with options to log in with an OAuth 2 service]] | ||
==Log in using your account on another site== | |||
The OAuth 2 authentication plugin enables users to log in using their Google, Microsoft and/or Facebook account via buttons on the login page. | |||
If account creation is enabled, when a user first logs in, a new account will be created. Otherwise, they will be prompted to [[Linked logins|link it to their existing account]] with the same email address. | |||
==Habilitar autenticación OAuth 2== | ==Habilitar autenticación OAuth 2== | ||
Línea 8: | Línea 13: | ||
To use OAuth 2 authentication, an administrator must first create the required OAuth 2 services. | To use OAuth 2 authentication, an administrator must first create the required OAuth 2 services. | ||
# Go to 'OAuth 2 services' in Site administration and click the button to create a new service. | # Go to 'OAuth 2 services' in Site administration > Server and click the button to create a new service. | ||
# Follow the instructions in [[ | # Follow the instructions in [[OAuth 2 Google service]], [[OAuth 2 Microsoft service]] or [[OAuth 2 Facebook service]] and obtain a client ID and secret. | ||
# Enter the client ID and secret | # Enter the client ID and secret, make sure 'Show on login page' is ticked, then save changes. | ||
Repeat for additional services as desired. For OAuth 2 authentication, there is no need to connect to a system account. | |||
Next: | |||
# Go to 'Manage authentication' in Site administration and enable the OAuth 2 authentication plugin. | # Go to 'Manage authentication' in Site administration and enable the OAuth 2 authentication plugin. | ||
# Optional: In the OAuth 2 settings, lock selected user data fields and save changes. | # Optional: In the OAuth 2 settings, lock selected user data fields and save changes. | ||
Línea 21: | Línea 30: | ||
# Go to 'Manage authentication' in Site administration and tick the box 'Prevent account creation when authenticating' (authpreventaccountcreation). | # Go to 'Manage authentication' in Site administration and tick the box 'Prevent account creation when authenticating' (authpreventaccountcreation). | ||
# Click the 'Save changes' button. | # Click the 'Save changes' button. | ||
==Troubleshooting== | |||
===On the 'OAuth 2 services' page, there is a red cross for 'Allow login'=== | |||
To get a green tick for Allow login, edit the OAuth 2 service and make sure that the setting 'Show on login page' is ticked. | |||
===I obtain a coding error after enabling OAuth 2 authentication=== | |||
Have you any OAuth 2 plugins for earlier versions installed on your site? If so, you will need to [[Installing plugins|uninstall them]] in order to use the standard OAuth 2 authentication. | |||
[[Categoría:OAuth 2]] | [[Categoría:OAuth 2]] | ||
[[en:OAuth 2 authentication]] | [[en:OAuth 2 authentication]] |
Revisión del 14:15 6 jun 2017
¡Nueva característica
en Moodle 3.3!
Nota: Urgente de Traducir. ¡ Anímese a traducir esta muy importante página !. ( y otras páginas muy importantes que urge traducir)
Log in using your account on another site
The OAuth 2 authentication plugin enables users to log in using their Google, Microsoft and/or Facebook account via buttons on the login page.
If account creation is enabled, when a user first logs in, a new account will be created. Otherwise, they will be prompted to link it to their existing account with the same email address.
Habilitar autenticación OAuth 2
To use OAuth 2 authentication, an administrator must first create the required OAuth 2 services.
- Go to 'OAuth 2 services' in Site administration > Server and click the button to create a new service.
- Follow the instructions in OAuth 2 Google service, OAuth 2 Microsoft service or OAuth 2 Facebook service and obtain a client ID and secret.
- Enter the client ID and secret, make sure 'Show on login page' is ticked, then save changes.
Repeat for additional services as desired. For OAuth 2 authentication, there is no need to connect to a system account.
Next:
- Go to 'Manage authentication' in Site administration and enable the OAuth 2 authentication plugin.
- Optional: In the OAuth 2 settings, lock selected user data fields and save changes.
Impedir creación de cuenta nueva
If you don't want new accounts to be created when users log in with an OAuth 2 service:
- Go to 'Manage authentication' in Site administration and tick the box 'Prevent account creation when authenticating' (authpreventaccountcreation).
- Click the 'Save changes' button.
Troubleshooting
On the 'OAuth 2 services' page, there is a red cross for 'Allow login'
To get a green tick for Allow login, edit the OAuth 2 service and make sure that the setting 'Show on login page' is ticked.
I obtain a coding error after enabling OAuth 2 authentication
Have you any OAuth 2 plugins for earlier versions installed on your site? If so, you will need to uninstall them in order to use the standard OAuth 2 authentication.