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 inWP OAuth Client plugin, you can click here.

Follow the Step-by-Step Guide to configure GitHub with WordPress :

  • Go to https://github.com/settings/developers and log into your GitHub account.
  • You will be presented with the following screen. Click on Register a new application
  • github1
  • 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.

  • After registering the application, you will be given Client ID and Client Secret.
  • github3
  • 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

Free Trial

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