Hi,
I am using Keycloak 21.1.1 and it started throwing me exception for creating AuthzClient from Java:
java.lang.RuntimeException: Can't identify clientAuthenticator from the configuration of client 'my-client' . Check your adapter configurations
I don’t know what can be wrong. Creating AuthzClient worked normally until now and suddenly stopped. I tried reset credentials but the problem persists.
Can anyone think of anything I should check?
If I use the rest api, everything works.
POST http://url/realms/realm-name/protocol/openid-connect/token
Content-Type: application/x-www-form-urlencoded
client_id=my-client&client_secret=mysercret&scope=email&grant_type=client_credentials
Anyone know why AuthzClient is doing this?
Badly created Map for clientCredentials (“type” is now “provider”).
wrong:
Map<String, Object> clientCredentials = new HashMap<>();
clientCredentials.put("secret", secret);
clientCredentials.put("type", "secret");
correct:
Map<String, Object> clientCredentials = new HashMap<>();
clientCredentials.put("secret", secret);
clientCredentials.put("provider", "secret");