Google OIDC
Configure Google OAuth for SqlOS AuthServer.
Setup
- Create an OAuth 2.0 Client ID in Google Cloud Console
- Set Authorized redirect URI to your callback URL:
http://localhost:5062/api/v1/auth/oidc/callback/{connectionId}
- 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"
}'
- Enable the connection:
curl -X POST http://localhost:5062/sqlos/admin/auth/api/oidc-connections/{id}/enable
- Update the redirect URI in Google Console with the actual
connectionId.
See OIDC Social Login for the complete auth flow.