Your Moodle version

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

Maintained by Picture of Jérôme Mouneyrac Jérôme Mouneyrac
Sign-in with your Google / Facebook / Github / Linkedin / Windows Live / VK / 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  / VK /" 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 Github 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.

Motivate the maintainer, +1 the plugin

Like the plugin on (the Add to my Favorites link on this page) and check who contributed to the plugin development in the landing page. Thanks guys!

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.


Screenshot #0
Screenshot #1


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 Jérôme Mouneyrac
    Mon, Sep 28, 2015, 1:35 PM
    I agree, Moodle admins should always test before installing/upgrading a critical plugin or a major Moodle install (for example have a duplicate of your production site on a different url).

    About the issue, we don't know what was William's version.php file before the upgrade, so it is not easy to reproduce. I wrote this issue to make further investigation. Maybe it could also be a file permission issue as the upgrade process requires to change the auth folder permission. William, if you didn't delete the database table, but only the files, it may have been a permission problem in fact. Note: people can uninstall this plugin from Moodle (I think smile). What there is not, is some specific uninstall code, and I can not remember if Moodle read the install.xml file during the uninstall process.

    Also I would like to add that I appreciate if we could all keep support for this plugin on Github. Not here, and especially not by email, as it does not benefit others. Finally when I maintain this plugin or when I personally answer someone about this plugin, I give you my time. If you appreciate it you can "Favorite this plugin" on this page smile
  • Picture of Przemek Malik
    Mon, Sep 28, 2015, 6:52 PM
    I have problem with this plugin - when users starting to login thru Google accounts, the plugin disabling itself :/ Any ideas whats going wrong? It's a known problem?
  • Picture of Jérôme Mouneyrac
    Mon, Sep 28, 2015, 8:00 PM
    Just for the info I tested upgrade and it works. I installed a 2.5 site (plugin installed with plugin rep) then I upgrade the site straight to 2.9. Then through the Moodle admin I updated the Oauth2 plugin to the last plugin version (it is googleoauth2 2.1), it worked perfectly. My user that I used to login with Google was still able to login in.
  • Picture of Jérôme Mouneyrac
    Mon, Sep 28, 2015, 8:09 PM
    Premezek: it seems very weird, I never heard of anything like the plugin been disabled automatically. Would you be able to do a screencast to demonstrate the problem? Then publish it on github. Thanks.
  • Picture of Jonatan martinez
    Tue, Sep 29, 2015, 5:15 AM
    Thanks for developing this valuable plugin.
    but, Do I want to know if this works with moodle moblie application ?
  • Picture of Jérôme Mouneyrac
    Tue, Sep 29, 2015, 9:26 PM
    Hi Jonatan, this plugin won't help to authenticate in the Moodle mobile app - the mobile app currently authenticate by web service to Moodle - so except if Moodle became an authentication provider recently (and in this case we may be able to authenticate in Moodle through Google, then authenticate to the mobile app through Moodle) I don't think it is possible. Note that Moodle do provide some authentication through Mnet and other people already implemented Moodle as an authentication provider but I don't think any of that provide authentication to mobile apps.
  • Picture of James Nicolson
    Thu, Oct 1, 2015, 4:39 AM
    Hi Jerome, simple question hopefully. I've installed the plugin, enabled under manage authentication and checked the settings to make sure they are valid including the mappings but I still cannot see the button. Is there another setting I am missing to show the button?
  • Picture of William Michael
    Thu, Oct 1, 2015, 4:53 AM

    I apologize if this is obvious and not the problem, but there's a box on the Oauth2 settings page that needs to be checked to "Display buttons on login page"
    Go to: Site Admin > Plugins > Authentication > Oauth2

    Good luck,
  • Picture of James Nicolson
    Thu, Oct 1, 2015, 5:17 AM
    Thanks William, do oauth2 and googleoauth2 work in conjunction with each other? The next question; is there a good way or tutorial for creating the client ID and secret using the google API?
  • Picture of William Michael
    Thu, Oct 1, 2015, 5:29 AM

    At the top of that Oatuth settings page in Moodle, there's a link to the Google Developer site you need to create the credentials. See here:

  • Picture of William Michael
    Thu, Oct 1, 2015, 5:31 AM
  • Picture of William Michael
    Thu, Oct 1, 2015, 5:40 AM
    Once there...
    1. Create Project > Give Project a name > Create
    2. Select "APIs and Auth" > APIs > Select "Google+ API" > Enable Google+ API
    3. Back to "APIs and Auth" > Credentials > Add Credentials > OAuth 2.0 Client ID >
    4. However, it requires that you first configure the consent screen, so do that...most of it is can fancy it up if you like.
    5. Select "Web Application", then give it a name, then paste the info from your Moodle Oauth2 settings page into the boxes and hit "Create".
    6. That should be it.

  • Picture of James Nicolson
    Thu, Oct 1, 2015, 5:54 AM
    Thank you for your help. Once i got rid of a trailing space the auth worked fine. That is great. I really appreciate your detailed help.
  • Picture of Jérôme Mouneyrac
    Thu, Oct 1, 2015, 11:29 AM
    Thanks William for helping James smile I will try to make some video demonstrating how to set it up.
  • Picture of Mark Roberts
    Fri, Oct 2, 2015, 8:37 AM
    Hi, I've successfully set up the plugin to work with Google, but it isn't working with Facebook. Unfortunately, the procedure seems to have changed a bit for setting up the app with Facebook (I noticed this issue on Github). Could you possible let me know in addition to the email address, what other settings need to be enabled / set for Facebook? Thanks!
1 2 3 4 5 6 7 8 9 10 11
Please login to post comments