OAuth Configuration
Third-party authentication settings for Google, GitHub, and Apple.
Google OAuth
| Variable | Default | Sensitive | Description |
|---|---|---|---|
OAUTH_GOOGLE_ENABLED | false | No | Enable Google OAuth. |
OAUTH_GOOGLE_CLIENT_ID | (empty) | No | Google OAuth client ID. |
OAUTH_GOOGLE_CLIENT_SECRET | (empty) | Yes | Google OAuth client secret. |
GitHub OAuth
| Variable | Default | Sensitive | Description |
|---|---|---|---|
OAUTH_GITHUB_ENABLED | false | No | Enable GitHub OAuth. |
OAUTH_GITHUB_CLIENT_ID | (empty) | No | GitHub OAuth client ID. |
OAUTH_GITHUB_CLIENT_SECRET | (empty) | Yes | GitHub OAuth client secret. |
Apple OAuth
| Variable | Default | Sensitive | Description |
|---|---|---|---|
OAUTH_APPLE_ENABLED | false | No | Enable Apple OAuth. |
OAUTH_APPLE_CLIENT_ID | (empty) | No | Apple OAuth client ID (Service ID). |
OAUTH_APPLE_CLIENT_SECRET | (empty) | Yes | Apple OAuth client secret. |
OAUTH_APPLE_TEAM_ID | (empty) | No | Apple Team ID. |
OAUTH_APPLE_KEY_ID | (empty) | No | Apple Key ID. |
Setup Guides
Google OAuth
- Go to Google Cloud Console
- Create a new project or select existing one
- Navigate to APIs & Services > Credentials
- Create an OAuth 2.0 Client ID (Web application)
- Add your redirect URI:
https://your-domain.com/api/auth/oauth/google/callback
GitHub OAuth
- Go to GitHub Developer Settings
- Click New OAuth App
- Set Authorization callback URL to:
https://your-domain.com/api/auth/oauth/github/callback
Apple OAuth
- Go to Apple Developer
- Register a Services ID in Certificates, Identifiers & Profiles
- Configure Sign in with Apple for your domain
Example
bash
# Google
OAUTH_GOOGLE_ENABLED=true
OAUTH_GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
OAUTH_GOOGLE_CLIENT_SECRET=GOCSPX-your-secret
# GitHub
OAUTH_GITHUB_ENABLED=true
OAUTH_GITHUB_CLIENT_ID=Ov23lixxxxxxxxx
OAUTH_GITHUB_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx