Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

ruckus-matte/moodle-auth_googleoauth2

 
 

Repository files navigation

This plugin adds the "Sign-in with Google / Facebook / Github / Linkedin / Windows Live" buttons on the login page. The first time the user login with a social account, a new Moodle account is created.

Installation:

  1. add the plugin into /auth/googleoauth2/
  2. in the Moodle administration, enable the plugin (Admin block > Plugins > Authentication)
  3. in the plugin settings, follow the displayed instructions.

Implement your own provider (for devs)

  1. add your third party provider for Oauth2 client as explain in https://github.com/thephpleague/oauth2-client
  2. create /classes/provider/newprovidername.php and newprovidername_redirect.php. Then add the lang strings in /lang/en/auth_googleoauth2.php and add the provider name to lib.php:provider_list (if you have time you can change the function logic to automatically load the classes from the provider folder and then send me a pull request, thanks :))

Use the table access token (for devs)

In order to use to store the access token you must set the config with: set_config('saveaccesstoken', 1, 'auth/googleoauth2');

Composer (for devs)

I deliver the entire vendor content in the repository (so don't run composer). It makes it for me easy to download the zip file from Github and then to upload it straight away in Moodle.org. Moodle.org is not able to create a package from Github (with vendor libs) yet.

Continueous integration

Build Status

Credits

+1 the plugin

To like the plugin, go to the Moodle.org repositoroty plugin page, login and click on 'Add to my Favorites'. Find other ways to contribute on the github plugin page.

About

Google - Facebook - Windows - etc. authentication plugin for Moodle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 47.0%
  • HTML 33.1%
  • CSS 10.5%
  • JavaScript 8.7%
  • Gherkin 0.7%