How to use keycloak admin key for OpenID exit requests

JBoss keycloak offers an admin URL in client settings where you can respond to push events or other events. Sorry, I cannot find documentation on how to use this url? Can you give me a hint if this is so? part of the OpenID Spec or if the Doc API exists for this.

In particular, I want to know how I can implement a client endpoint that responds to exit or cancellation requests from the keyclayak server.

Thanks Christian

+5
source share
1 answer

AFAIK Using an admin URL is Keycloak-specific, not part of Open ID Connect or OAuth.

I suppose you need to take a look at the code, i.e. PreAuthActionsHandler # handleRequest processes URLs ending in k_logout and k_push_not_before .

The easiest way to handle these events is to use the Keycloak client adapter. An adapter (available for Jetty, Tomcat, and others) will automatically handle this for you. Just provide any URL for your deployed application, and the client adapter will do the rest.

+2
source

Source: https://habr.com/ru/post/1244134/


All Articles