[keycloak-dev] Keycloak impersonate programmatically

Bill Burke bburke at redhat.com
Thu May 12 11:20:49 EDT 2016


You can't impersonate progammatically at the moment.


On 5/12/16 1:24 AM, Anshul Malpani wrote:
> Hi,
>
> I am trying to use impersonate feature using my java client. When I 
> call impersonate api using admin access grant. I get back the cookies. 
> How can I get the access token for the impersonate user.
>
>
>
> HttpPost post = new HttpPost(
>   
> KeycloakUriBuilder.fromUri(authServerUrl).path(“/admin/realms/{realm}/users/{id}/impersonation").build(realm, 
> accountKeycloakId));
>
> This is returning me cookies. In next step I would like to get the 
> access token of impersonate user.
>
> Thanks
>
> On Wed, May 11, 2016 at 3:25 PM, Anshul Malpani <anshulm at stytch.com 
> <mailto:anshulm at stytch.com>> wrote:
>
>     Hi,
>
>     I am trying to use impersonate feature using my java client. When
>     I call impersonate api using admin access grant. I get back the
>     cookies. How can I get the access token for the impersonate user.
>
>
>
>     HttpPost post = new HttpPost(
>     KeycloakUriBuilder.fromUri(authServerUrl).path(“/admin/realms/{realm}/users/{id}/impersonation").build(realm,
>     accountKeycloakId));
>
>     This is returning me cookies. In next step I would like to get the
>     access token of impersonate user.
>
>     Thanks
>     A
>
>
>
>
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160512/0ed5e7af/attachment.html 


More information about the keycloak-dev mailing list