In the Keycloak server, we created a client that has an Access Type
of confidential
.
By calling /protocol/openid-connect/token
endpoint with the client_id
and the client_secret
, we got the access_token
, which was supposed to authenticate the application (client) in question in the follow-up requests.
Even though the token is valid (which I double-checked by calling the introspect
endpoint), I am getting a 500 Error from the server for any request that has this access_token
So in short:
- Calling this endpoint
<base_url>/auth/realms/<realm>/protocol/openid-connect/token
gives an access_token- Provided data: client_id,client_secret, grant_type: "client_credentials"
- Calling
<base_url>/auth/realms/<realm>/protocol/openid-connect/userinfo
gives500Internal Server Error
{
"error": "unknown_error"
}
Any insights on what the issue could be?