Oauth2 authentication plugin for Moodle (for Moodle 3.2 and earlier) icon

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.
Price option: Free

Supports Moodle 2.1-3.2 See all versions
Latest release: 7 years ago
Installations: 416
Downloads (last 90 days): 41

Frankenstyle name: auth_googleoauth2
Authentication
OAuth2

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

I have implemented GoogleOauth2 on a live site, but due to some reasons the login gets redirected to edit.php page on moodle.
Even facebook, google, windows live send the authentication back to moodle, but due to some reason the user is not able to go beyond edit profile page.
All the parameters for GoogleOauth2 have been set correctly via admin panel.
Please suggest what needs to be done.
Note I will not make any fix/improvement anymore. You are free to fork it thought.
Please follow http://tracker.moodle.org/browse/MDL-34426: the port of the plugin in core for 2.4.
Thanks to everyone who used it, reported issues and contributed to it.
Hi James, please follow/vote for http://tracker.moodle.org/browse/MDL-34426. We are working on making oauth2 authentication available in core.
Hi Jerome
Thanks for the great plugin. I have been testing this on a development server. The following kept reoccurring: when I tried to authenticate with facebook, it kept telling me that my email address was not verified (in FB) even though I knew that it was verified. I managed to get it working by just commenting out the line in auth.php that generates that error. However, this is probably not a good solution. Any suggestions?
Also, is this plugin stable enough for use on a productiuon server?
Has anybody tried the plugin with moodle 2.3 ?
Jim: only verified Google and Facebook accounts can create a new account, so only human spam can happens. This is most likely manageable. If MSN is enabled then, people from MSN can spam. Otherwise there is nothing implemented to select which users can register.
James: the plugin will not work on 1.9.
Dear Jerome, I do not get the right place for the additional PHP-code, which should be put in general.php. I use the overlay theme. If I add the PHP code to the general.php code and put it in one file (login.php), and then configure config.php to 'file' => 'login.php' it shows a blank page. Where exactly has the PHP code to be put? And what fields need to be modified? Thank you!
AddHi Jerome, doe's this plugin will work with moodle 1.9? a comment...
Is there any way to make it so that unauthorized (non-local) users cannot create accounts automatically.
In other words, how to guard against spam accounts?
Hi Jerome, can you please visit this post here...http://moodle.org/mod/forum/discuss.php?d=200736#p875680
i dint want to cross post it ...
can youplease help me in rectifying this problem.
Regards
Umesh
Es interesante este plugin, lo he usado y si funciona para las tres cuentas (google, live y facebook ), pero tengo un gran problema, que al ingresar de la forma normal, al escribir el nombre de usuario y sin escribir contraseña (o escribir cualquier contraseña) ingresa a su cuenta (con solo el nombre de usuario).... no sé porque entra.
He mirado la base de datos y en el campo password del usuario aparece "not cached".
Y eso ha echo que cambie "Escoger un método de identificación" en CUENTAS MANUALES, pero antes cuando cree la cuenta de usuario lo hice en "GOOGLEOAUTH2".
Agradecería su pronta ayuda.
Thanks for the reply Jerome, i am using on live site and it is having the same issue. so i am currently using only facebook login and have hidden google and msn.
Mircea: for the logo you must add your own. You have to read the code in the readme and change what needs to be changed.
Umesh: the plugin doesn't work in local for the reason that you mentioned. Google is going to check your site, and it is not going to find your local site. Google will refuse to authenticate the user in this case, which quite nice actually.
iam having exactly this error for google and MSn....how do i solve it?
there is no problem with facebook tough...
kindly help...
the problem : The plugin doesn't work in local mode. Google/Facebook/Messenger Connect authentication will most likely fail in the first redirection, and if you enter the authorization code manually in the URL, it will fail when trying to get the access token. Google will return a Missing authorization error.