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): 43

Frankenstyle name: auth_googleoauth2
Authentication
OAuth2

Comments

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

Hi Jérôme,
like Kio Cha, I have the same problem, I'm using moodle 2.4, whe I try to login i get this error "error/couldnotgetuseremail". Anyidea please?
Mea culpa, it's ok to restrict to my domain, it's in the moodle auth page.
But I still need creaed username to be equal to the email address.
Thanks
Hello Jérôme Mouneyrac,
It installed in few minutes and works fine with Google.
But I need two things :
* I need the created username with Google to be equal to the email address (and not social_user_),
* I really need to lock new account creation with Google to be locked to a Google Apps domain, i.e. I don't want any user to be able to create an account, but just visitors that have email address from @mygoogleappsdomain.com.
Is it possible to reach these two needs ?
Thanks again for this great plugin.
I'm using for the moment an OpenID plugin, but OpenID is depredated, then I need to go to Oauth2
Kind regards,
Vincent MARECHAL
Be careful ! I realized that this module version (download section) is not the same of here: http://mouneyrac.github.io/moodle-auth_googleoauth2/ (that is latest)
Hello all, we are trying to modify this module to use it with Wordpress (through https://github.com/justingreerbbi/wordpress-oauth) but we get this error:
Debug info:
Error code: couldnotgetgoogleaccesstoken
Stack trace:
line 425 of /auth/googleoauth2/auth.php: moodle_exception thrown
line 89 of /login/index.php: call to auth_plugin_googleoauth2->loginpage_hook()
Output buffer:
Notice: Trying to get property of non-object in /var/www/moodlepru/auth/googleoauth2/auth.php on line 189
any idea what could be the error? or how debug it ?
If I have well understood, either the user get always connected through Facebook (for example), either the usual direct way.
The user cannot login sometimes through Facebook and sometimes in the direct way.
The way the user can login is determined by the way its account has been created, once for all (unless the admin modifies it).
Is that correct?
We suggest to change the fixed strings like Sign-in with Google in lib.php by a get_string like that:
get_string('signin_google','local_agora', 'Google'). The login buttons are the main login interface and cannot be translated!
Thanks for this great module smile
Hi have the problem that when i try to login i get this error "error/couldnotgetuseremail". Anyidea?
This is an amazing plugin, and a bit confusing too. After 2 weeks working to activate it and a lot of tests I figure it that have one condition that needs to be addressed.
The login process is OK, but if you have accounts that have registered the same email address inside the google or facebook account, the process brake without notifications and shows the native moodle login process. I realized that after a bunch of documents readed over internet about oauth2 process.
My recomendations to the maintainers is to add the code to advertice this condition, and to the rest of us to check the pressence of this condition and to support the users in this and to take correct decisions about wich kind of account will support.
Thanks in advance.
Guido.
Is this plugin affected by any Google deprecations?
I submitted this as an issue in Github, but didn't know if it was more appropriate to ask here instead. I apologize for cross posting, I just wasn't sure which place was better.
https://github.com/mouneyrac/moodle-auth_googleoauth2/issues/63
It is not immediately obvious to me if this plugin is affected by anything that Google is deprecating. It appears to me that this plugin is not affected by anything on that web site but just wanted to be reasonably sure. Google migration timetable is located at: https://developers.google.com/+/api/auth-migration#timetable
Thank you.
Hi ,
I am new to Moodle. I want to integrate facebook connect with oauth. for this I have added the Facebook APP id and secret key. In front end it's showing the Facebook connect button and i have clicked on that and going to facebook and ask me to okay the app. then it return the below error.
"The authentication provider sent us a communication error. Please try to sign-in again."
Please help me to resolve this issue.
Thanks in advance.
Anwardeen
I am trying to get this to work as a block which I can put on the front page. Is that possible or do I need to do some extensive programming myself to get it to work?
Still its not working please help...!!! same error is going on
Thanks Graham Bowman, i have already done all of that you said. But its making error like "You do not have permission to use the site yet. Please contact your administrator and ask them to activate your account." you can also check on http://www.vle.neoteachers.com/login/index.php
Parupkar Singh, have you enabled API access in your Google Apps admin settings? There should be instructions on the plugin settings page. You need to go to https://code.google.com/apis/console
Google console API > API Access > Create another client ID...
Then set the "Redirect URLs" and "Javascript origins" to what the settings page shows you (it will be unique to your site).
We have been using this with 2.7 and it's not had any issues.