Skip to main content
This guide walks you through configuring GitHub as a social login provider for your application.

Prerequisites

  • A GitHub account
  • Your GitHub OAuth Client ID and Client Secret

Configure GitHub OAuth

1

Create an OAuth App on GitHub

  1. Go to GitHub Developer Settings
  2. Click OAuth Apps > New OAuth App
  3. Enter an Application name (e.g. “Prelude Auth”)
  4. Enter the Homepage URL of your application
  5. Set the Authorization callback URL to:
Replace ${YOUR_CUSTOM_DOMAIN} with your custom domain (e.g. session.yourapp.com).
  1. Click Register application
  2. Copy the Client ID
  3. Click Generate a new client secret and copy the Client Secret
The callback URL must match exactly. Make sure there is no trailing slash and that you are using https.
2

Create the GitHub OAuth configuration

Update the configuration

To update an existing GitHub OAuth configuration:

Delete the configuration

To remove GitHub OAuth from your application:

What’s next?

Now that GitHub OAuth is configured on your backend, integrate the frontend using the Web Integration guide.