A Postman Request to Keycloak with public client ID and username and password worked without problems in Keycloak 12.0.4. The same request with the same configuration in keycloak now returns following error:
{
“error”: “invalid_client”,
“error_description”: “Invalid client credentials”
}
Can you tell me, what I did wrong?
You will be very kind if you provide reproducible example: so that request and client configuration.
Public clients have had secrets before . That issue was fixed [KEYCLOAK-14840] Public Client Representation includes a secret - Red Hat Issue Tracker. I guess client is not properly migrated in Keycloak 16 or it doesn’t handle old buggy client state correctly.
I would say, delete that client and create it again from the scratch and you should be fine.
Thank you very much. I finally found the issue. I had a small typo in the client ID by swapping two characters. I finally spotted my mistake.