Google Workspace
Sign in to Neurouter with Google accounts over OpenID Connect, restrict sign-in to your Workspace domain, and manage roles and groups in Neurouter.
Neurouter can use Google as its OpenID Connect provider, so people sign in with their Google Workspace accounts.
1. Create an OAuth client in Google Cloud
In the Google Cloud console for a project in your organization:
- Configure the OAuth consent screen. For Workspace organizations, choose the Internal user type to limit sign-in to your organization.
- Create an OAuth client ID of type Web application, with the authorized redirect URI
https://mcp.example.com/api/auth/callback(yourPUBLIC_URLfollowed by/api/auth/callback). - Note the client ID and secret. See Google's OpenID Connect documentation.
2. Configure Neurouter
OIDC_ISSUER=https://accounts.google.com
OIDC_CLIENT_ID=<client-id>.apps.googleusercontent.com
OIDC_CLIENT_SECRET=<client-secret>
OIDC_DISPLAY_NAME="Sign in with Google"
OIDC_SCOPES="openid email profile"
OIDC_ALLOWED_EMAIL_DOMAINS=example.com
BOOTSTRAP_ADMIN_EMAIL=it-admin@example.com
Don't add a groups scope: Google doesn't define one. OIDC_ALLOWED_EMAIL_DOMAINS makes sure only addresses in your domains can sign in, even if the consent screen is external.
Managing access
- Create groups under Administration → Groups and add people to them, or pre-provision users under Administration → Users.
- Grant servers and tools under Administration → Access control.