Configure GitHub login for Discourse

  1. Go to https://github.com/settings/developers, then look for OAuth Apps in the left menu. Select New OAuth App. Fill in the required fields.

    Be sure to set the Callback URL to use the path /auth/github/callback at your site domain. e.g., https://discuss.example.com/auth/github/callback

  2. (Optional) Upload a logo that users will see when signing into GitHub from your site.

  3. After creating your application, you should see the Client ID and Client Secret. Enter those in the Discourse fields:

    github_client_id
    github_client_secret

  4. Enable the enable github logins site setting.

That’s it!


Last Reviewed by @SaraDev on 2022-05-23T21:00:00Z

42 Likes