Fill in the GitHub App name, Homepage URL, and Description.
On the app page, generate a Client secret under "Client secrets".
Note the Client ID and the generated Client Secret.
Under the "Identifying and authorizing users" section, set the Callback URL to:
# Assuming base path is /api/authhttp://localhost:8080/api/auth/oauth2/callback/github
For production, replace localhost with the base URL of your Authula server (e.g. https://api.yourdomain.com).
Make sure to check the following checkboxes:
Request user authorization (OAuth) during installation
Enable Device Flow
Then save the changes and click on the "Permissions & events" tab on the left, under the "Account permissions", set the "Email addresses" to "Read-only" to access the user's email.
# SECURITY NOTE: It is recommended to set the 'client_secret' for each of these via their# respective environment variables as shown in the .env.example file rather than hardcoding it here.[plugins.oauth2.providers.github]enabled = trueclient_id = "your-client-id"client_secret = "your-client-secret"redirect_url = "http://localhost:8080/auth/oauth2/callback/github"scopes = []