Step by step guide to configure github as an OAuth Server

If you want to login to your WordPress site using your GitHub username and password, you can simply do it using our WP OAuth Client plugin. Once you configure the GitHub with WordPress plugin, you can sso/login to your WordPress site using GitHub credentials. This plugin also allows you to map your WordPress account different roles based on your GitHub attributes/groups. To know more about other features we provide in WP OAuth Client plugin, you can click here.

Please follow the steps given below to configure your GitHub account with WordPress and setup the Single Sign On.

Guide to configure GitHub with WordPress :

1. Go to https://github.com/settings/developers and log into your GitHub account.2. You will be presented with the following screen. Click on Register a new application

github1

3. You will be shown a form where you have to enter Application Name and Callback URI. Fill the form with appropriate
information and click on the Register Application.

github2

NOTE: Callback URI is the URI where the user will be sent after authorization.

4. After registering the application, you will be given Client ID and Client Secret.

github3

5. Copy these credentials in MO OAuth Plugin configuration on corresponding fields.

You can download OAuth Client plugin using the following link.

OAuth Single Sign On – SSO (OAuth client)

 GitHub Endpoints and Scope:

Client ID : from the step 4 above
Client Secret : from the step 4 above
Scope: user repo
Authorize Endpoint: https://github.com/login/oauth/authorize
Access Token Endpoint: https://github.com/login/oauth/access_token
Get User Info Endpoint: https://api.github.com/user

If you are facing any difficulty please mail us on info@miniorange.com.