AuthServer
Google OIDC
Configure Google OAuth for SqlOS AuthServer.
You'll learn how to register redirect URIs in Google Cloud and create the connection in SqlOS.
The default hosted provider callback path is:
https://your-app.example.com/sqlos/auth/oidc/callbackFor local development with the default SqlOS base path:
http://localhost:5062/sqlos/auth/oidc/callbackCreate the OIDC connection in SqlOS first, then copy the dashboard callback URI into Google Cloud.
/sqlos/admin/auth/oidc on your running app.Default scopes when left empty: openid, email, profile.
curl -X POST http://localhost:5062/sqlos/admin/auth/api/oidc-connections \
-b "$SQLOS_DASHBOARD_COOKIE_JAR" \
-H "Content-Type: application/json" \
-d '{
"providerType": "google",
"displayName": "Google",
"clientId": "YOUR_CLIENT_ID.apps.googleusercontent.com",
"clientSecret": "YOUR_CLIENT_SECRET",
"allowedCallbackUris": [
"http://localhost:5062/sqlos/auth/oidc/callback"
]
}'The create operation enables the connection. Use the following endpoint only to re-enable a connection that was disabled:
curl -X POST http://localhost:5062/sqlos/admin/auth/api/oidc-connections/{id}/enable \
-b "$SQLOS_DASHBOARD_COOKIE_JAR"See Authenticate operator API calls before using any admin curl example.
/sqlos/auth/login.| Error | Fix |
|---|---|
redirect_uri_mismatch | Google Console must list the exact SqlOS callback URL |
| Callback not allowed in SqlOS | Update the connection’s allowed callback list |
| Unverified email | Google must return a verified email for linking |
If the email domain matches an org SAML connection, SqlOS starts SSO instead of Google. See Home realm discovery.