Maintained by Picture of Sergio RabellinoSergio Rabellino
Sign-in with an Oauth2 provider. The first time you sign-in, a new account is created.
1185 sites
454 downloads
269 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:

Sets

This plugin is part of set OAuth2.

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Comments

  • 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



    Thanks
  • 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 https://developers.google.com/accounts/docs/OpenIDConnect 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??

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

    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
    Hi
    How is it possible to place the sign in button below the login not top of the page? Thanks..
  • Picture of Ammar Elhassan ElMerhbi
    Tue, Apr 21, 2015, 5:13 PM
    Andy, please check your user authentication method. Go to users and check each user setting. Is the authentication method oauth or something else?
  • Picture of Ammar Elhassan ElMerhbi
    Tue, Apr 21, 2015, 5:13 PM
    Andy, please check your user authentication method. Go to users and check each user setting. Is the authentication method oauth or something else?
  • Picture of Ammar Elhassan ElMerhbi
    Tue, Apr 21, 2015, 5:14 PM
    Andy, please check your user authentication method. Go to users and check each user setting. Is the authentication method oauth or something else?
  • Picture of Charlotte Nicolas
    Tue, Jun 2, 2015, 4:28 PM
    Hi Jerome,

    I wonder if you plan to add Twitter Authentication in your plugin roadmap.
    If this is not the case, can you just explain the reasons (technical issue, lake of time...) ?

    Thanks,
  • Picture of Jérôme Mouneyrac
    Tue, Jun 2, 2015, 4:45 PM
    Hi Charlotte,
    I am planning to do it but I don't think it will arrive before, at least, a month. I am working on this plugin only when I have some free time and the desire to work on it smile I am currently rewriting the plugin using the popular PHPLeague Oauth2 client library that supports many extra providers (dropbox, instagram, square...). You can have a pick to this new version in the dev branch on github. However as the PHPLeague lib is also an Oauth2 client library it doesn't support twitter. Twitter uses Oauth1 for the authentication process (from my knowledge).

    To support Twitter I was thinking using https://github.com/thephpleague/oauth1-client as library. You can follow https://github.com/mouneyrac/moodle-auth_googleoauth2/issues/54

    Cheers,
    Jerome
Please login to post comments