Google (Workspace or personal accounts)¶
Google works for Google Workspace and for personal accounts: free, also for teams without a company identity provider.
Register the client¶
- Google Cloud console → APIs & Services → OAuth consent screen: configure it (Internal for a Workspace organization).
- Credentials → Create credentials → OAuth client ID → Web application.
- Authorized redirect URI:
https://ca.example.com:8443/v1/oidc/callback. - Copy the client secret to
/etc/bastionxp-ca/oidc-client-secret.
Groups¶
Google puts no groups into its tokens. Use username_claim: email
and rules by users:
server:
url: https://ca.example.com:8443
oidc:
issuer: https://accounts.google.com
client_id: <client-id>.apps.googleusercontent.com
client_secret_file: /etc/bastionxp-ca/oidc-client-secret
username_claim: email
access:
- users: [[email protected], [email protected]]
ssh_principals: ["{short_username}"]
- users: [[email protected]]
admin: true
BastionXP CA accepts the email address only if Google reports it as verified.