This plugin adds a Google/Facebook/Windows Live button on the front page. The first time the user clicks on the button, a new account is created.
Since Moodle 2.5 you can automatically install the plugin from Moodle.org. For manual installation or other versions, follow these steps:
-
add the plugin into /auth/googleoauth2/
-
in Moodle admin, enable the plugin (Admin block > Plugins > Auhtentication)
-
in the plugin settings, follow the instructions.
-
[Moodle 2.5+] install this theme extending bootstrap: https://github.com/mouneyrac/moodle-theme_easy/archive/googleoauth2.zip
or
[All versions] add the following code to your login page (For most of you copy it at the bottom of login/index_form.html. Some custom themes have their own login page. In this case you should find the login layout page indicated in the theme config.php file. Often the file location is something like /theme/YOURTHEME/layout/login.php.):
<?php require_once($CFG->dirroot . '/auth/googleoauth2/lib.php'); auth_googleoauth2_display_buttons(); ?>
Read the Wiki. You are welcome to send Pull Request and to report issues.