Oauth2 authentication plugin for Moodle (for Moodle 3.2 and earlier)
Maintained by
Sergio Rabellino
Sign-in with an Oauth2 provider. The first time you sign-in, a new account is created.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
For the other people, stay tuned! I've done the phpleague plugin update, soon available on github and in download...
Due to lack of time, I hand over the plugin maintenance to Sergio Rabellino. Sergio is a well known Moodler and he will be more than qualified to maintain the plugin.
Sergio accepted to maintain the plugin until the Oauth2 core plugin stabilises. So you should have time to move over to the Oauth2 core plugin introduced in Moodle 3.3 - we expect you to have moved to it by mid 2019.
We transfered the official repository from my Github account to his Github account there: https://github.com/rabser/moodle-auth_googleoauth2. So if you are using Github, there will be no impact for you as Github should automatically redirect the previous git repository url to the new one.
I would like to thank Sergio to take over, I really appreciate it, and I wish you all the best in your new adventure as maintainer.
I also thank Moodle HQ that allowed me to work on the plugin during a project week, Guillermo from rewrite.com.ar (the unique donator in 5 years), the Moodle Partner Elearning Experts LLC. to have contracted me to update the code to support a Google API change, and also all the contributors.
Kind Regards to everyone,
Jerome Mouneyrac
I am happy to announce that this plugin has been adopted! The new maintainer is Sergio Rabellino, the head of the ICT services of the University of Turin. Good luck and thanks for keeping this plugin supported!
Help me!
Most of my users log in my site via facebook and gmail. Unfortunately, neither of them works when I upgrade this plugin to Release 2.3 (Build: 2016061204). I know "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". My App's API version 2.3, when I upgrade API, it says; Your app hasn't made enough calls to the Graph API to show any info, or there are no changes for the methods you selected between v2.3 and v2.8.
Now my site is using release 2.3 (Build: 2016061202) and only gmail works.
Any suggestions are apprecited.
I'm using moodle 3.2.2
I did try to fix the Facebook issue again, trying to upgrade the phpleague lib to a more recent version (without even trying the last phpleague 2.X version, just the last 1.X version so refactoring would be minimum) but it would still mean rechecking all providers and likely doing some refactoring. I don't have the time for that right now, sorry
However I created a quick script to know who is using Facebook and so you can alert your users. You need to put the code in a .php file in your Moodle root folder and access it from your browser (of course delete the file once you ran it and so know who is using facebook to login).
require_once('config.php');
$facebook_users = array();
$facebook_logins = $DB->get_records('auth_googleoauth2_logins', array('subtype' => 'facebook'));
foreach($facebook_logins as $facebook_login) {
if (empty($facebook_users[$facebook_login->userid])) {
$facebook_users[$facebook_login->userid] =
$DB->get_record('user', array('id' => $facebook_login->userid), 'id, username, email, firstname, lastname, lastlogin');
$facebook_users[$facebook_login->userid]->lastlogindate = date('Y-m-d H:i:s', $facebook_users[$facebook_login->userid]->lastlogin);
}
}
echo count($facebook_users) . " googleoauth2 facebook user(s)";
echo "";