Your Moodle version

Authentication: Google / Facebook / Github / Linkedin / Windows authentication

Maintained by Picture of Jérôme Mouneyrac Jérôme Mouneyrac
Sign-in with your Google / Facebook / Github / Linkedin / Windows Live account. The first time you sign-in, a new account is created.

This plugin adds the "Sign-in with Google / Facebook / Github / Linkedin / Windows Live" buttons on the login page. The first time a user login,  a new Moodle account is created.


  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.

Documentation and support

Visit the official web page.

You can also 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.


This plugin is part of set OAuth2.




Picture of Jérôme Mouneyrac
Jérôme Mouneyrac (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Boulbaba Othmani
    Fri, Nov 21, 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?
  • Picture of Jérôme Mouneyrac
    Fri, Nov 21, 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?

  • Picture of Jérôme Mouneyrac
    Fri, Nov 21, 2014, 9:52 AM
    As mentioned in previous comments, report bugs on the github tracker issue first. Also search in this tracker:

    It is likely that someone already reported it: (see top issue)

    Thank you,
  • Picture of Hanry Ham
    Sat, Nov 29, 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?
  • Picture of Roberto Martínez
    Fri, Dec 5, 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?
  • Picture of Jérôme Mouneyrac
    Fri, Dec 5, 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
  • Picture of zizo zizo
    Sun, Dec 28, 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

  • Picture of Craig Simmons
    Wed, Jan 28, 2015, 4:16 AM
    Are there any plans to move this to OAuth-Connect as Google is dropping OAuth2?
  • Picture of Jérôme Mouneyrac
    Wed, Jan 28, 2015, 7:55 AM
    Hi Craig,
    I just checked it seems to be the same calls/code, I think it will work. They just added some openid parameters into the mix in this documentation. Note that months ago I already fixed the deprecated API in order to use Google+ API. Let me know if there is any issue, it's hard to always follow Google changes, they love changes smile
  • Picture of Craig Simmons
    Tue, Feb 3, 2015, 6:39 AM
    Thanks Jérôme! It has been a hot topic here. I'll keep monitoring the situation. We can't use Google + as we are a K-12 school and so some of our students are too young to be able to use it. sad
  • Picture of Federica Marra
    Sat, Feb 7, 2015, 12:10 AM
    Hi Jérôme, I'm new in Moodle and also I never registered myself somewhere with my social account! I was wondering what can happens when someone creates the account with his/her social network account. What will be the data stored in Moodle (username, mail, password)? And if the social account is deleted also the Moodle account will be gone? Thanks for your time.
  • Picture of Andy Scherer
    Mon, Feb 9, 2015, 1:44 AM
    Hi guys

    The issue "error/couldnotgetuseremail" is back on my page. I didn't any update and use the newest version of this oauth Plugin.
    I have activated the "Google+ API" on the Google Developer Console.

    Also, I changed the Api key and secret either created a new project on google site, nothing has helped.

    As someone an idea what it could be?

    Thanks in advance!
  • Just wondering . . .
    Fri, Feb 13, 2015, 1:58 AM
    Does this work with Moodle 2.8??

  • Picture of Pralad Dessai
    Wed, Apr 8, 2015, 6:22 PM

    I have enabled google oauth in our moodle instance

    Actually I am using a a customised alternate login url to login to it.

    So could you please advice me on how to get the google oauth option in my customised alternate login url to login.
  • Picture of Ammar Elhassan ElMerhbi
    Mon, Apr 20, 2015, 5:22 PM
    How is it possible to place the sign in button below the login not top of the page? Thanks..
1 2 3 4 5 6 7 8 9
Please login to post comments