Google OIDC
Marmot supports Google as an OIDC provider for Single Sign-On authentication.
Create a Google Cloud Project
- Go to the Google Cloud Console
- Create a new project or select an existing one
Configure OAuth Consent Screen
- Navigate to APIs & Services → OAuth consent screen
- Select External user type (or Internal if using Google Workspace)
- Configure the consent screen:
- App name:
Marmot - User support email: Your email address
- Developer contact information: Your email address
- App name:
- On the Scopes page, add:
openid.../auth/userinfo.email.../auth/userinfo.profile
- Add test users if using External user type
Create OAuth 2.0 Credentials
- Navigate to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- Select Web application as the application type
- Configure your client:
- Name:
Marmot Web Client - Authorised JavaScript origins:
https://your-marmot-domain.com - Authorised redirect URIs:
https://your-marmot-domain.com/auth/google/callback
- Name:
- Click Create
Note the Client ID and Client Secret shown in the credentials dialogue.
Configure Marmot
Set the following environment variables:
export MARMOT_AUTH_GOOGLE_ENABLED=true
export MARMOT_AUTH_GOOGLE_CLIENT_ID="your-client-id.apps.googleusercontent.com"
export MARMOT_AUTH_GOOGLE_CLIENT_SECRET="your-client-secret"
Or configure via config.yaml:
auth:
google:
enabled: true
client_id: "your-client-id.apps.googleusercontent.com"
client_secret: "your-client-secret"
Restart Marmot and the Google login button will appear on the login page.