Oauth2 authentication plugin for Moodle (for Moodle 3.2 and earlier)

Authentication ::: auth_googleoauth2
Maintained by Sergio Rabellino
Part of set OAuth2.
Sign-in with an Oauth2 provider. The first time you sign-in, a new account is created.
Latest release:
719 sites
120 downloads
272 fans
Current versions available: 3

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

  1. add the plugin into /auth/googleoauth2/
  2. in the Moodle administration, enable the plugin (Admin block > Plugins > Authentication)
  3. 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:

Screenshots

Screenshot #0

Contributors

Sergio Rabellino (Lead maintainer)
Jérôme Mouneyrac: Original author and previous maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Bigmar Alvizures Cordero
    Thu, 7 Mar 2019, 10:27 PM
    Buen día Sergio,
    Es probable el poder utilizar esta versión en un Moodle 3.6?
  • Sergio Rabellino
    Thu, 7 Mar 2019, 10:36 PM
    Some users reported in the past that the plugin was usable, but i cannot and do not want to confirm this. Moodle 3.6 has it's own oauth2 client and i suggest to use that.
  • Bigmar Alvizures Cordero
    Thu, 7 Mar 2019, 10:57 PM
    Muchas gracias por el aporte, tengo unos usuarios pero no puedo ver su perfil, me dice que falta el auth_oidc, es factible solo instalarlo y no usarlo?

  • Muhammad Rumman Islam Nur
    Wed, 15 Jan 2020, 1:55 AM
    help post : how can i solve this problem please help me
    You do not have permission to use the site yet. Please contact your administrator and ask them to activate your account.
    More information about this error
  • stavroula lalou
    Tue, 24 Mar 2020, 11:05 PM
    Hello, is oauth2 plugin compatible with Moodle 3.5.2? Because i cannot find any plugin for authentication with Facebook in 3.5.2 version.
  • Phuong Hoang
    Wed, 25 Mar 2020, 2:48 AM
    Hi stavroula,
    If you're using moodle 3.5, just visit Site administration - Server - OAuth2 services and configure https://docs.moodle.org/35/en/OAuth_2_Facebook_service
  • Sergio Rabellino
    Wed, 25 Mar 2020, 6:15 PM
    Since moodle 3.2 you should just configure your moodle from Site administration, as suggested by Phuong.
  • stavroula lalou
    Thu, 26 Mar 2020, 4:54 PM
    Hello is oauth2 compatible with 3.5 moodle version?? or is there any other plugin for authentication via facebook in moodle 3.5 version? I can't find anything. Please help!
  • stavroula lalou
    Thu, 26 Mar 2020, 4:56 PM
    I did all these steps https://docs.moodle.org/35/en/OAuth_2_Facebook_service, how can i enable it in my moodle???
  • stavroula lalou
    Thu, 26 Mar 2020, 5:06 PM
    Thank you Phuong Hoang i did it! Thank you very much
  • zanyar ahmed
    Thu, 20 Aug 2020, 3:30 AM
    hello while login i have this error: Forbidden
    You don't have permission to access this resource.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
  • Sergio Rabellino
    Thu, 20 Aug 2020, 6:06 AM
    This is a web server error in serving a web page, it's not related to this plugin, sorry.
  • Sébastien Petit
    Thu, 15 Jun 2023, 7:28 PM
    Finally killed this monster! To be able to uninstall the plugin, I had to run the following SQL query on my database:
    DELETE FROM mdl_user WHERE auth LIKE 'googleoauth2'
    Begone, vile glop!
  • Sergio Rabellino
    Thu, 15 Jun 2023, 7:46 PM
    This is not needed at all, to uninstall the plugin, you should remove the corresponding code and move the auth type of users from "googleoauth2" to "manual". I.E. UPDATE mdl_user SET auth='manual' where auth='googleoauth2'.
  • Innocent Chukwu
    Fri, 8 Dec 2023, 5:32 PM
    Hello, can this plugin allow silent authentication and login for users that have been authenticated on microsoft oauth?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Please login to post comments