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.
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
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),
),
...
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
Cheers.
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!
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.