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.

Apparently the installation gone well but after login I was redirected to a personal profile with name and city to be completed. I couldn't save the profile because no emai address displayed and no input field for this.
In this point I am stuck because I couldn't find anything on the net to solve this.
I also want to mention that Google logo dose not apear properly. The site is: http://dim.umft.ro
Hi Robert, it's a good idea and I guess it should not be too hard to implement if Facebook give you the profil picture.
Marina , as example, in my project:
I created a file theme/MYTHEME/layout/login.php
in this file I duplicated my main layout (it was call general.php) and I added the code.
in theme/config.php I added:
$THEME->layouts = array(
...
'login' => array(
'file' => 'login.php',
'regions' => array(),
'options' => array('langmenu'=>true),
),
...
Dear Jerome, I use Standard theme for Moodle 2.0. In the theme config.php file there in no $Theme->layouts. There are variables for 'blocks', 'user', 'calendar', 'css3' etc. But no 'login' or 'layout'. It would be great to know where can I put the code from the README file? Thanks! Marina
Jerome,
Awesome plugin! The company I work for, TutoringZone, has been using it to great success! We were hoping that there is a method by which a user's Facebook profile picture could be set to their Moodle profile picture as well. Have you worked on this implementation at all? I'd be interested to see how this functionality would work...
Thanks!
Rob Bailey
Technical Director, Tutoringzone
Hi guys, Manish alerted me about Jong-Dae comment. I pushed a fix on github. Use github issue tracker when you have an issue, I receive alert emails from github. Otherwise for Manish blank fields issue I'm aware of it but I don't know yet what is the cause... Follow it on github: https://github.com/mouneyrac/auth_googleoauth2/issues/8
Cheers.
I find that Name, Email, City, Country etc. fields are blank in the moodle profile of the user. What could be the issue and how to fix this.
isset() functions needs to be replaced by !empty() in facebook_redirect.php,google_redirect.php, and messenger_redirect.php.
You can save the html code into a file, for example login.php. Then include the file in general.php, just before the footer part. <?php include("login.php"); ?>
Hi! i can't do this work!
Can you tell me where i will paste this html code?, be cause i has been pasted in theme/nameofmytheme/layaout/general.php. I was pasted in the head and in the line 135 in the body and it doesn't work.
would you help me please!
hello, I have Moodle 2.1.2, in the step 2 the Manage authentication get in blank page
Hi Carlos.
if you implement the 'provider logos example code' at the same place as I did (in my theme as mentioned in step 4), then you need to read these documents: http://docs.moodle.org/dev/Themes_2.0 and http://docs.moodle.org/dev/Themes_2.0_creating_your_first_theme
Tips: look in your theme/config.php. You should find a "login" section in $THEME->layouts. There is indicated the login layout file name where you should put the example code. Sometimes it's a login.php layout file, sometimes it's another layout file. It depends of your theme.
At the end, the step 4. is just about displaying a link to a provider to start the authentication process.
Dear Jerome, I try to implement your pluggin in my website running moodle 2.1, follow your instructions, but I got stuck in step 4, I don't know how to include a logging block in a Moodle 2.1 theme, can you place more specific instructions about this issue, please?