[keycloak-user] Looking for a non Admin Java client

Chris Savory chris.savory at edlogics.com
Mon Oct 3 17:21:41 EDT 2016


We need to make several types of calls to KeyCloak from the server side of our application.  Some are in the context of a logged in user and others are not.  We have the latter case handled right now by using the KeyCloak Admin Client.   But we are unable to locate another Java client for the purposes of making calls to KC for the currently authenticated user.  I have found the AuthZ Client, but that appears to just be for authenticating. 
 
The particular use case I’m researching now is we have an endpoint like /profile-service/users/current, which will return the currently logged in user profile.  Some of that information comes from KC and some comes from the local app database.  Currently we the app configured to make the server-side call as a KC admin while it is orchestrating this data, but I’d prefer for the user to use the same credentials as it did when it came to the server with a BEARER token.  This will help us when it comes to auditing, especially for updates.
 
Does such a java client exist? Or do I need to use the KeycloakRestTemplate to make those calls to KC?


--
Christopher Savory
Software Engineer | EdLogics





More information about the keycloak-user mailing list