OIDC configurations
Google​
- Go to Google Cloud Console (https://console.cloud.google.com)
- Create a new project or select an existing one
- Click on the project dropdown at the top
- Click "New Project" or select existing
- If creating new, enter name and click "Create"
- Enable OAuth consent screen
- Go to APIs & Services > OAuth consent screen
- Choose External user type
- Fill required fields (app name, user support email, developer contact)
- Under OAuth consent screen, add test users if you're in test mode to make specific users able to user the newly added OIDC feature.
- Add authorized domains including your platform's domain
- Enable required Google APIs (like userinfo.email, userinfo.profile, and openid) if needed
- Save and continue
- Configure OAuth credentials
- Go to APIs & Services > Credentials
- Click "Create Credentials" > OAuth client ID
- Select Web application as application type
- Add name for the OAuth client
- Add any additional authorized JavaScript origins and redirect URIs as needed
- Click on Create
- Get credentials
- After creation, you'll see the Client ID and Client Secret
- Client Secret is shown only once, so store it safely
- Then finaly, fill the following environment variables:
OIDC_GOOGLE_CLIENT_ID
on the frontendOIDC_GOOGLE_CLIENT_ID
andOIDC_GITHUB_CLIENT_SECRET
on the backend
Github​
- Go to GitHub Developer Settings (https://github.com/settings/developers)
- Register a new OAuth application
- Click on "New OAuth App"
- Fill in the required fields:
- __Application name°° - Provide a name for the application
- Homepage URL - Enter your platform's homepage URL
- Authorization callback URL - Provide the redirect URI where GitHub will send authentication responses
- Click "Register application"
- Retrieve Client ID and Client Secret
- After registration, you will see the Client ID on the application details page
- Click "Generate a new client secret"
- Store the Client Secret securely, as it will be shown only once
Your GitHub OAuth application is now ready for use in your OIDC configuration.
- The environment variables to use are the following:
OIDC_GITHUB_CLIENT_ID
on the frontendOIDC_GITHUB_CLIENT_ID
andOIDC_GITHUB_CLIENT_SECRET
on the backend