Prerequisites
- A GitHub account
- Your GitHub OAuth Client ID and Client Secret
Configure GitHub OAuth
Create an OAuth App on GitHub
- Go to GitHub Developer Settings
- Click OAuth Apps > New OAuth App
- Enter an Application name (e.g. “Prelude Session”)
- Enter the Homepage URL of your application
- Set the Authorization callback URL to:
${YOUR_CUSTOM_DOMAIN} with your custom domain (e.g. session.yourapp.com).- Click Register application
- Copy the Client ID
- 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.Create the GitHub OAuth configuration
| Field | Description |
|---|---|
client_id | Your GitHub OAuth client ID. |
client_secret | Your GitHub OAuth client secret. |
enabled | Set to true to enable GitHub login. |
options.use_email_as_identifier | When true, the user’s GitHub email is stored as an email identifier. |
options.allow_email_account_merge | When true, if a user with the same email already exists, the GitHub account is linked to the existing user. |