Skip to main content

GitHub

GitHub OAuth supports both the web application flow and device flow.

First, please visit the GitHub developer settings to register a new GitHub App.

tip

We recommend you use GitHub Apps to replace OAuth Apps because GitHub Apps can add multiple redirect URIs, which can bring convenience when deploying test and production environments.

The GitHub official also recommends using GitHub Apps instead of OAuth Apps.

1. Create a GitHub App

Create GitHub App

 

2. Configure the GitHub App

Fill in the GitHub App name, Homepage URL, Description

Set Callback URL to https://auth.sether.com/callback

3. Generate a new Client Secret

Generate a Client Secret

 

3. Configure SetherAuth

Add the GitHub OAuth connection and enter the Client ID and Client Secret in SetherAuth.

GitHub Connection

 

You can now use GitHub as a third-party service to complete authentication.