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.
2245 sites
217 fans

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.

I also created a free mini-course on how to install a Moodle plugin using Oauth2 plugin as example.

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!

Facebook API 2.8 breaking changes

Unfortunately Facebook changed the API in its 2.8 version and it is not compatible with the plugin. So if you don't have an old Facebook API key, if you create a new key for Facebook, then it won't work with this plugin. I hope to get it in the next big update for the plugin 3.0 version but for the moment I can not set any date on when it will be released. Any financial help from big company/university using the plugin is more than welcome. We have a lot to do on the plugin from fixing Facebook, security issue, upgrading to the last maintained PHPleague Oauth2 clients lib, making it look better on Moodle 3.2 Boost theme... Cheers, Jerome.

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
Screenshot #2
Screenshot #3


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 Ken Task
    Fri, 15 Apr 2016, 12:33 AM
    Been using this plugin ... good work!
    However, am seeing this in apache error logs of server now (broken down for readability - sorry for length):
    Linux CentOS el5PAE PHP 5.5.34 Moodle 3.0.3+ (Build: 20160407)

    core\\event\\user_loggedin Object
    [data:protected] => Array\
    [eventname] => \\core\\event\\user_loggedin
    [component] => core
    [action] => loggedin
    [target] => user
    [objecttable] => user
    [objectid] => 837
    [crud] => r
    [edulevel] => 0
    [contextid] => 1
    [contextlevel] => 10
    [contextinstanceid] => 0
    [userid] => 837
    [courseid] => 0
    [relateduserid] => [anonymous] => 0
    [other] => Array
    [username] => social_user_2
    [timecreated] => 1460649341
    [logextra:protected] => [context:protected] => context_system Object
    [_id:protected] => 1
    [_contextlevel:protected] => 10
    [_instanceid:protected] => 0
    [_path:protected] => /1
    [_depth:protected] => 1
    [triggered:core\\event\\base:private] => 1
    [dispatched:core\\event\\base:private] =>
    [restored:core\\event\\base:private] => [recordsnapshots:core\\event\\base:private] => Array
    Thanks, in advance, for any clue! ;)
  • Picture of Dinis Medeiros
    Sun, 24 Apr 2016, 7:03 AM
    I got it working!!
    For Messenger redirect domain should be your website name + "/auth/googleoauth2/messenger_redirect.php". For e.g if your website is then redirect url should be "
  • Picture of Jeff Long
    Tue, 26 Apr 2016, 9:39 PM
    Moodle Upgraded to version 3.0.3, now Google OAuth2 is no longer working.
    Has any one experienced any issues with version 3.0.3 and OAuth2 2.2???
  • Picture of Ana Retreva
    Fri, 29 Apr 2016, 10:39 PM
    Hi all! We get this error: auth_googleoauth2/couldnotgetuseremail

    More information about this error
    Debug info:
    Error code: couldnotgetuseremail
    $a contents:
    Stack trace:

    line 190 of /auth/googleoauth2/auth.php: moodle_exception thrown
    line 89 of /login/index.php: call to auth_plugin_googleoauth2->loginpage_hook()

    This happen when trying to connect with facebook

    Could you please help me? It would be apprecited, I've spent too many hours around this problem

  • Picture of Jérôme Mouneyrac
    Sun, 12 Jun 2016, 7:39 PM
    Hi guys, don't forget to search for existing issues on and add issue report on Github too when you can not find a solution.

    Plugin developers can not disable comments on their plugin page, and having both these comments and github issues make things difficult to manage for me, and even more annoying for you as you may miss information here or on Github (depending what you check).

    So to summarize, let's all use Github, it is much easier to search for an existing issue reports there.

    Cheers smile
  • Picture of Ziyad Muslat
    Wed, 10 Aug 2016, 1:25 AM
    We use hidden categories to control who can see live courses. The issue is for students that are added in moodle manually, they would not see a course in a hidden category unless they are enrolled the course. However, users who are using this plugin can see these courses ( though they cannot enroll), but we want them to not be able to see these courses completely.
    Our site assigns the "Authenticated user at front page" to all users by default, but this doe not seem to be applied to the social users.

    Does anyone have a solution? Does the plugin assign a specific role to users who login using their social media plugin?
  • Picture of Joenn Aquilino
    Sun, 4 Sep 2016, 11:26 AM

    First off, I would like to say that this is such a great plugin, thanks!
    I've a question, would it be possible to change the button's location?

  • Picture of Bert van der Hooft
    Mon, 17 Oct 2016, 7:12 PM
    Dear Jérôme,

    Trying to get linkedin authentication working. But whatever I do I get the message "invalid redirect_url...." of an authentication error.
    Could you help: which field in Linkedin register application page must be set whit which value. You short description in the settings confuses me.

    Best regards,

  • Picture of Jérôme Mouneyrac
    Tue, 18 Oct 2016, 10:45 AM
    Hi Bert,
    the problem with Oauth2 is that the providers change **very** regularly the way they implement it and even more the way you set it up. We (the "we" of likely no-one is going to do it - equivalent to someone needs ... :D) "just" (another funny word smile) need to update the plugin as it goes. From memory, one thing I remember happening twice with providers returning "invalid redirect_url" was because the providers decided that from now the redirect_url needed to be HTTPS otherwise they refused to authenticate the user. I would check that if I were you, maybe it will solve your issue... sorry to not be more helpful to you at this time. I do want to give a lot of time to the plugin and to put up with some good - long time required - maintenance.
  • Picture of Rafael Lopes Computel
    Fri, 28 Oct 2016, 3:05 AM
    Hi, i can't login with facebook. Any help?

    Error message:
    "The site succeed to connect to the selected provider but failed to retrieve your user details. If you are using Google, check that your site administrator has enabled the Google+ API in the Google developer console. It is the most common reason for this error."
  • Picture of Jérôme Mouneyrac
    Thu, 3 Nov 2016, 3:48 PM
    Hi guys, Facebook is not working with Facebook API 2.8. So basically if you have an old API key for an old Facebook API it is working otherwise we'll have to wait the next plugin big update (unfortunately due to no free time from my side, it is not planned and has no date).
  • Picture of david gerber
    Sat, 24 Dec 2016, 7:52 AM
    Having issues with iptables and this plugin--I can't figure out what to open up so it gets through iptables -- works fine until i provide a cleanup drop command, but it then gets dropped with this error: Exception - [curl] 6: Could not resolve host: [url]
  • Picture of Emanuele Aloi
    Thu, 16 Feb 2017, 10:56 PM
    Hello everybody,

    For an Academic Research, I'm trying to find a way to ask users permission to view their "facebook likes". Until now it seemed to understand that it must necessarily use Graph API.
    This plugin could help me in any way?

    thank you,
  • Picture of Edmund Evangelista
    Wed, 22 Feb 2017, 5:34 PM
    Is there a way using sql script to determine the number of files uploaded by a faculty in a course through Dropbox and Google Drive?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Please login to post comments