You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSO Test Login fails its configuration check on a saved confidential client ("Invalid Google OAuth client secret") #34798
Describe the bug
Test Login on an already-saved confidential-client SSO configuration fails its configuration check, e.g. Google reports "Invalid Google OAuth client secret." The saved secret is correct and real sign-in works.
To reproduce
Save Google SSO as a confidential client.
Reopen Settings → SSO.
Click Test Login without retyping the secret.
Cause GET /api/v1/system/security/config masks oidcConfiguration.secret (and ldapConfiguration.dnAdminPassword) as ********* for every non-bot user, so the SSO form only ever holds the mask. Test Login's first step posts the form to POST /api/v1/system/security/validate, which checked the masked value against the provider: Google's token endpoint answers 401, and an LDAP check binds with the masked password the same way. Okta, Azure, Auth0, Cognito and custom OIDC are affected too. The sign-in step (test-login/start) and saves (PUT/PATCH) already put the saved secret back.
Expected behavior
The check uses the saved secret while the configuration still targets the same client at the same provider or directory.
Activity
fix(sso): use the saved secret in Test Login's configuration check (o…