Troubleshooting

Keycloak: Invalid client credentials or Client not found

The client_id or secret does not match the Keycloak client's, the client is public while the application sends a secret, or the wrong realm is used in the address.

Keycloak: “Invalid client credentials” or “Client not found”Keycloak

Cause probable. The client_id or secret does not match the Keycloak client's, the client is public while the application sends a secret, or the wrong realm is used in the address.

What to do? In Clients, Credentials tab, copy the current secret or regenerate it. Check that the realm in the address is the right one and that Client authentication is enabled for a confidential client.

To see exactly which check fails, paste the response into theanalyseur, or paste the message into the diagnostic.

Related errors

All SAML and OpenID Connect errors

Want to see it for real? ID-Kit plays the role you are missing and shows you each step.