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 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
Thanks!
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???
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 www.xyz.com then redirect url should be "www.xyz.com/auth/googleoauth2/messenger_redirect.php
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! ;)
We have been quite happy with this plugin. We moved to a new hosting account and from then facebook login redirects to the same page and prompts from log-in again. Please see this screencast - https://vzaar.com/videos/6729495
Has anybody faced a similar problem? Please help
Great plugin!
But there is a small mistake in documentation. For Messenger redirect domain should be your website name + "/auth/googleoauth2/microsoft_redirect.php". For e.g if your website is www.xyz.com then redirect url should be "www.xyz.com/auth/googleoauth2/microsoft_redirect.php
I've configured Facebook, Gmail, and Github. I don't get any errors, but after I log in and give the app permission, it returns to the home page with "You are not logged in." Do I have to do something to allow accounts to be created? Do I have to use https?
Is there any way to configure this plugin so that the new user can use her/his email as username insted of the prefix? Thank you.
Account
Any help for this? Using hotmail account!!!
We're unable to complete your request
Microsoft account is experiencing technical problems. Please try again later.
Can't login with Microsoft. Google and Facebook OK. Any help?
Hi i'm new in using moodle and plugins also. This error whe trying to connect with g+ button
" 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. "
Can someone help it will very cool thanks in advance.
Is it possible to receive the userpic of the social media (like g+ or facebook profile picture)?
Hi guys,
At first, I failed to install this plugin, but finally it works like a charm. In my opinion, the reason why I failed was that I used the same email as the one I had registered in my moodle site. I'm not sure! Let consider, guys!
Hi Jerome,
I am getting the following error:
401. That’s an error.
Error: invalid_client
The OAuth client was not found.
Request Details
approval_prompt=auto
scope=profile email
response_type=code
redirect_uri=http://www.saamarthyaved.com/auth/googleoauth2/google_redirect.php
state=c92cf1e0119c1d3d8b9620c07813500a
client_id=342837796965-fgv9hodo73agl5e0t9eq9phe31jr94hp.apps.googleusercontent
also What should be the name of the Product in OAth consent screen.
Thanks in advance,
Sourabh
Thanks for the great plugin! Is it possible to show the buttons for oauth also on the signup page?
I want to direct people to the signup from a landing page. They should be able to sign up with Facebook and google...