Skip to content

SSO Test Login fails its configuration check on a saved confidential client ("Invalid Google OAuth client secret") #34798

Closed

Description

@mohityadav766

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

  1. Save Google SSO as a confidential client.
  2. Reopen Settings → SSO.
  3. 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.

Version
main, introduced with #34054.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions