Getting "invalid_client_credentials" exception when using special characters in client secret on RHBK

Solution Verified - Updated -

Issue

  • Clients encounter authentication issues, resulting in HTTP 401 errors.
  • Server logs display an invalid_client_credentials error for the affected client.

    WARN  [org.keycloak.events] (executor-thread-18) type="LOGIN_ERROR", realmId="***", realmName="***", clientId="***", userId="null", ipAddress="***", error="invalid_client_credentials", grant_type="password"
    

Environment

  • Red Hat build of Keycloak (RHBK)
    • 22
    • 24
    • 26

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content