Google Cloud Identity
Mandaitor integrates with Google Cloud Identity and Google Workspace for organizations in the Google ecosystem, as well as consumer Google accounts.
When to Use Google
- Startups and SaaS companies using Google Workspace as their corporate directory
- Consumer-facing applications where users sign in with Google
- Organizations on Google Cloud Platform
Configuration
curl -X PUT https://api.mandaitor.io/v1/tenants/{tenantId}/identity-providers \
-H "Authorization: Bearer $TOKEN" \
-d '{
"enabled_providers": ["API_KEY", "COGNITO", "GOOGLE"],
"google": {
"client_id": "your-google-client-id.apps.googleusercontent.com",
"hosted_domain": "company.com"
}
}'
The hosted_domain field is optional. When set, only users from that Google Workspace organization can authenticate. Omit it to allow any Google account.
Token Validation
- Provider detection: Authorizer detects
accounts.google.comissuer - JWKS verification: Signature verified against Google's JWKS (
googleapis.com/oauth2/v3/certs) - Claims extraction:
sub,email,name,hd(hosted domain),email_verified - Hosted domain check: If configured,
hdclaim must match - Identity resolution: Mapped to
oidc:google:<sub>canonical subject ID
Agents acting for a user
Mandaitor does not exchange Google tokens for delegation tokens. A person signs in with Google and issues mandates. An AI agent authenticates with its own registered key and acts only on the mandates that name it (Agent Identity Registry). Acting with the user's own token, on their behalf, is not available.
Google Workspace Integration
For Google Workspace organizations, the hd (hosted domain) claim ensures only users from your organization can create mandates. Combined with Google Workspace's admin console, you can manage which users have access to Mandaitor.