Google API
The Google emulator provides OAuth 2.0 and OpenID Connect (OIDC) support for local development and testing.
Configuration
google:
users:
- email: testuser@gmail.com
name: Test User
- email: dev@example.com
name: Developer
oauth_clients:
- client_id: emu_google_client_id
client_secret: emu_google_client_secret
name: Code App (Google)
redirect_uris:
- http://localhost:3000/api/auth/callback/googleOAuth 2.0 Flow
The emulator implements the standard Google OAuth 2.0 authorization code flow:
- Your app redirects the user to the emulator's authorize endpoint
- The emulator presents a consent screen (or auto-approves in test mode)
- The user is redirected back with an authorization code
- Your app exchanges the code for access and refresh tokens
- Tokens can be used to access the userinfo endpoint
Endpoints
GET /o/oauth2/v2/auth- authorization endpointPOST /oauth2/v4/token- token exchangeGET /oauth2/v2/userinfo- get user infoGET /.well-known/openid-configuration- OIDC discovery documentGET /oauth2/v3/certs- JSON Web Key Set (JWKS)