GitHub
- Ensure that authentication is enabled by setting the following environment variable:
ADMYRAL_DISABLE_AUTH=false
- Go to GitHub Developer Settings
- Click on OAuth Apps
- Click on New OAuth App
-
Configure your OAuth app
-
Set the following Authorization callback URL:
- For production:
https://{YOUR_DOMAIN}/api/auth/callback/github
- For development (local):
http://localhost:3000/api/auth/callback/github
- For production:
-
Click on Register application
-
Copy the Client ID and generate a new Client Secret
-
Copy the in your environment file:
# .env ADMYRAL_DISABLE_AUTH=false AUTH_GTIHUB_ID=your_github_client_id AUTH_GITHUB_SECRET=your_github_client_secret