Moodle plugins directory: Oauth2 authentication plugin for Moodle (for Moodle 3.2 and earlier) | Moodle.org
Oauth2 authentication plugin for Moodle (for Moodle 3.2 and earlier)
Plugin end of life starting from Moodle 3.3
starting from Moodle 3.3, Oauth2 should be implemented in Moodle core. It will require you to upgrade to Moodle 3.3 and switch to the Oauth2 core authentication (and probably do some migration), but it is a great news as authentication is a really sensible matter and having Oauth2 plugins in core will guarantee their maintenance. So starting from Moodle 3.3 I highly recommend to use the new Oauth2 core plugins ((https://docs.moodle.org/dev/Better_Office_Integrations_3.3#Core_API_for_managing_Authorized_OAuth_Applications) ) . Missing core providers will likely be implemented by someone and published in the Moodle.org plugin repository. There will probably be a new Oauth2 category in the Moodle plugin repository. Wait and see...
I will try to mantain this plugin until Moodle 3.1 (LTS) runs out of security upport (13 May 2019).
Warning for Facebook users
The plugin stopped working the 27th March 2017 as Facebook closed the API 2.2. The last versions of this plugin have been updated to support Facebook 2.8 API. As usual carefully test before upgrading a third party plugin if your Moodle site is important to you (especially as it is an authentication plugin)
Installation
- add the plugin into /auth/googleoauth2/
- in the Moodle administration, enable the plugin (Admin block > Plugins > Authentication)
- in the plugin admin page, follow the displayed instructions.
I also created a free mini-course on how to install a Moodle plugin using Oauth2 plugin as example.
Documentation and support
You can search in all existing issues on Github. Go to the issues page, next to the filter button there is a search field. Remove the default content, type your keywords and press enter.
There is a FAQ too.
Alternative plugins
There are many alternatives to this plugin, if you have any trouble with this plugin it may be a good idea to try them:
- Moodle core Oauth2 plugins (Moodle 3.3 and later)
- Elcentra
- LenAuth
- OpenID Connect
- LinkedinAuth
- check the auth plugin list
When I Installed the plug -in and it is finished, the website goes to: my_url/admin/index.php and can't get loaded !!!! Also whenever moodle income , there is routed automatically to my_url/admin/index.php and the page isn't loaded again !!! I Looked for another ways to remove the extension but not where it is ?? .... someone could help me please ??
sorry I am not sure to understand your problem. All Moodle plugins when they got installed trigger my_url/admin/index.php. Can you post a screencast video somewhere (youtube for example) to demo your issues. Cheers, Jerome
I did the video:
https://www.youtube.com/watch?t=7&v=i5AgabY-Rjs
When I get log in, always moodle gets automatically to roated to /admin/index.php and the page doesn´t get loaded!!!
Please I need help to resolve this problem!
Santiago
Anyway thanks a lot for your help Jerome!!!
Hola, nuevamente te escribo por el inconveniente que tenia al cerrar la sesión de moodle no cerraba sesión de cuentas google, pero hice que cuando el usuario salga de moodle redirija a la pagina de https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=http://mi.moodle.com
Espero puedas mejorar con esta información el plugin
y gracias nuevamente por tu aporte
Error code: couldnotgetgoogleaccesstoken
Stack trace:
• line 436 of /auth/googleoauth2/auth.php: moodle_exception thrown
• line 89 of /login/index.php: call to auth_plugin_googleoauth2->loginpage_hook()
Pero ahora tengo otro problema, estoy probando aunteitcarme con facebook, y me da el problema siguiente
Tu dirección de correo electrónico no ha sido verificado por el método de autentificación que has seleccionado. Puede ser que te hayas olvidado de hacer click en el enlace "verificar dirección de correo" que Google o Facebook debía haberte mandado durante la subscripción a su servicio.
Debug info:
Error code: emailaddressmustbeverified
ahora si ya no se qu ehacer
NOTA: la auntenticacion con google funciona perfecto
Tu dirección de correo electrónico no ha sido verificado por el método de autentificación que has seleccionado. Puede ser que te hayas olvidado de hacer click en el enlace "verificar dirección de correo" que Google o Facebook debía haberte mandado durante la subscripción a su servicio.
Más información sobre este error, es cuando quiero auntenticarme con facebook, pero con google funciona perfect
Debug info:
Error code: emailaddressmustbeverified
Stack trace:
line 258 of /auth/googleoauth2/auth.php: moodle_exception thrown
line 89 of /login/index.php: call to auth_plugin_googleoauth2->loginpage_hook()