Detailed guide for configuring Google and GitHub OAuth login functionality
Google
and GitHub
login methods. Users can quickly log in to the Unla Web interface using their existing Google or GitHub accounts without needing to register separately.
Google Cloud Console
GitHub Settings
Configure Callback URLs
Access Google Cloud Console
Create or Select Project
Enable Google+ API
Create OAuth Client ID
Configure Authorization Callback URL
client_id
configurationclient_secret
configurationapiserver.yaml
configuration file:
Access GitHub Settings
Create New Application
Fill Application Information
Register Application
client_id
configurationclient_secret
configurationapiserver.yaml
configuration file:
OAuth login options not showing
client_id
and client_secret
are properly configured. Login options only appear when the corresponding parameters are configured.Callback errors or unable to login
User information sync issues
How to disable OAuth login
apiserver.yaml
to disable the respective login option.Variable Name | Description | Example |
---|---|---|
OAUTH_GOOGLE_CLIENT_ID | Google OAuth Client ID | 123456789.apps.googleusercontent.com |
OAUTH_GOOGLE_CLIENT_SECRET | Google OAuth Client Secret | GOCSPX-abc123def456 |
OAUTH_GITHUB_CLIENT_ID | GitHub OAuth Client ID | Iv1.abc123def456 |
OAUTH_GITHUB_CLIENT_SECRET | GitHub OAuth Client Secret | abc123def456ghi789 |