guide to configure github as an OAuth Server



If you want users to login to your WordPress site using their Github credentials, you can simply do it using our WP OAuth Client plugin. Once you configure the Github with WordPress plugin, you can allow users to SSO to your WordPress site using Github. Similarly, you can map your WordPress 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 :

  • First of all, 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.