Skip to content
This repository was archived by the owner on Jul 5, 2019. It is now read-only.

GitHub login Module

Jeremy Byron Schulz edited this page Mar 25, 2016 · 4 revisions

How to setup the module:

  1. Register an OAuth application on GitHub: https://github.com/settings/applications/new Note the new application's client ID and secret.
  2. Go to admin/config/services/openid-connect and enable the GitHub client. Add the client ID and secret obtained from GitHub.
  3. Enable the OpenID Connect login block at admin/structure/block. This will provide a block containing a "Log in with GitHub" button. Set the Region to "Secondary" to make it appear with the normal login.
NOTES:

Make sure the "Authorization callback URL" when registering a new application on github is set correctly. That means: if you test locally on e.g. docker set it to "http://localhost[:port]/" and for implementing it in the web, set it to the respective website e.g. "https://mathhub.info/"

Clone this wiki locally