You can see sources of our examples. For example:
I have a tomcat application that I am securing using the standalone
Keycloak server. How can I pull out the current user's information? I
am assuming it is some sort of REST call to the Keycloak API but I am
having trouble to get something to work.
keycloak-user mailing list