Documentation

Google OIDC

← All docs

Google OIDC

Configure Google OAuth for SqlOS AuthServer.

Setup

  1. Create an OAuth 2.0 Client ID in Google Cloud Console
  2. Set Authorized redirect URI to your callback URL:
http://localhost:5062/api/v1/auth/oidc/callback/{connectionId}
  1. Create the OIDC connection in SqlOS:
curl -X POST http://localhost:5062/sqlos/admin/auth/api/oidc-connections \
  -H "Content-Type: application/json" \
  -d '{
    "providerType": "google",
    "displayName": "Google",
    "clientId": "YOUR_GOOGLE_CLIENT_ID.apps.googleusercontent.com",
    "clientSecret": "YOUR_GOOGLE_CLIENT_SECRET"
  }'
  1. Enable the connection:
curl -X POST http://localhost:5062/sqlos/admin/auth/api/oidc-connections/{id}/enable
  1. Update the redirect URI in Google Console with the actual connectionId.

See OIDC Social Login for the complete auth flow.