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:
716 sites
121 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

Comments

  • Jérôme Mouneyrac
    Sat, 27 Sept 2014, 11:12 PM
    Please use the github bug tracker to report plugin issues: https://github.com/mouneyrac/moodle-auth_googleoauth2/issues.
    Thank you.
  • Carrie Gernant
    Thu, 2 Oct 2014, 10:49 AM
    We are trying to get the Google Authentication to work and are running into an issue with the buttons showing up on the login page, can someone please outline the exact process for this? We are using version 2.7 of Moodle and oauth 2.0, and are using the Clean theme/template (default I believe). If someone could just step me through the process for google authentication that would be great as I feel we are just missing one step. Thank you for your time.
    Carrie
  • Jérôme Mouneyrac
    Thu, 2 Oct 2014, 1:43 PM
    hi Carrie,
    everything should be clear enough on the settings page. What is not clear? What is your problem? Do you use the git version for 2.7 (on moodle.org I only put the 2.5 version, I need to put the latest stable branch yet)
  • sandip patel
    Wed, 5 Nov 2014, 11:00 PM
    Hello,
    I have install plugin and configure it but on my login page facebook button are not show please help me
  • Simone Mura
    Thu, 6 Nov 2014, 5:36 PM
    Hi,
    i've the same problems with sandip. I use moodle 2.6, and i've downloaded the version in http://mouneyrac.github.io/moodle-auth_googleoauth2/.
    I configured the plugin with google client id but the google button is not show sad
  • Rodrigo Alguerno
    Tue, 18 Nov 2014, 12:27 PM
    hello Jerome , will be very grateful if you can upload the moodle 2.7 stable version.
    It's a huge contribution your work and appreciate your dedication.

    Greetings and thank you very much
    PS: We look forward to your contribution
  • Jérôme Mouneyrac
    Tue, 18 Nov 2014, 3:47 PM
    I updated all branches smile

    If you are a business or an organization, do contribute financially: http://jerome.mouneyrac.com/plugins/

    It's a little contribution but it makes a massive different. I am spending a lot of time on the plugin: questions, requests, peer-reviews, merging pull-requests, continuous integration, maintaining all branches, quality assurance, in-plugin documentation, new features, etc.

    Cheers,
    Jerome
  • Boulbaba Othmani
    Fri, 21 Nov 2014, 12:30 AM
    Hello, and thanks a lot for this amasing plugin. Like a lot of participants, i guet the "error/moodle/couldnotgetuseremail". Any body have found solution for it?
  • Jérôme Mouneyrac
    Fri, 21 Nov 2014, 9:42 AM
    Hello thanks for your report Boulbaba,
    are you using Google? Did you enable Google+ API as it is indicated in the settings page?


  • Jérôme Mouneyrac
    Fri, 21 Nov 2014, 9:52 AM
    As mentioned in previous comments, report bugs on the github tracker issue first. Also search in this tracker: https://github.com/mouneyrac/moodle-auth_googleoauth2/issues.

    It is likely that someone already reported it: https://github.com/mouneyrac/moodle-auth_googleoauth2/issues?q=is%3Aissue+is%3Aclosed (see top issue)

    Thank you,
    Jerome
  • Hanry Ham
    Sat, 29 Nov 2014, 8:19 PM
    Now, i am upgrading from 2.7 to 2.8. and now the function php require_once($CFG->dirroot . '/auth/googleoauth2/lib.php'); auth_googleoauth2_display_buttons() cannot show the google buttons.

    any solutions? or anyone facing the same problem?
  • Roberto Martínez
    Fri, 5 Dec 2014, 10:42 AM
    Hello Jérôme,

    I'm working on a SSO between drupal and moodle, do you by any chance have a tutrial on developing SSO's?
    Thanks
  • Jérôme Mouneyrac
    Fri, 5 Dec 2014, 12:04 PM
    Hi Roberto, sorry I don't know any SSO tut from memory but you should find it with Google I guess. Cheers, Jerome
  • zizo zizo
    Sun, 28 Dec 2014, 7:40 PM
    Dear all,

    I tried to install auth_googleoauth2 in my moodle 2.6 and follow all steps but this error appears

    "Coding error detected, it must be fixed by a programmer: Unknown component location"

    any one can help



    Thanks
  • Craig Simmons
    Wed, 28 Jan 2015, 4:16 AM
    Are there any plans to move this to OAuth-Connect as Google is dropping OAuth2?
Please login to post comments