Reputation: 1
I am using Keycloak 26.1 alongside Quarkus and invoking several Keycloak endpoints via a REST client. Each of these endpoints requires an access token with specific privileges. At the moment, I retrieve this access token from the logged-in user’s session. However, I would like the access token to be obtained directly from the Keycloak client, ensuring that it is independent of the user and that users do not possess those particular privileges.
I understand that I need to implement a client credentials grant on the Keycloak client, but I am unsure how to proceed with this in my current setup.
For reference, the Quarkus dependencies I am using are:
Could someone kindly provide guidance or an example on how to achieve this?
After numerous attempts, I have not managed to successfully obtain an access token using client credentials.
Upvotes: 0
Views: 20