[keycloak-user] Looking for a non Admin Java client
Stian Thorgersen
sthorger at redhat.com
Mon Oct 3 23:32:25 EDT 2016
Are you saying you want to invoke the Keycloak admin endpoints? You are
currently using the Keycloak Java Admin Client, but you want to use
something else? Why use something else when you already have something?
On 3 October 2016 at 23:21, Chris Savory <chris.savory at edlogics.com> wrote:
> 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
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
More information about the keycloak-user
mailing list