[keycloak-user] No user data in the access-token

Mai Zi ornot2008 at yahoo.com
Mon Oct 5 00:19:04 EDT 2015

Hi, there
We add a user ( with name and email ) via  the endpoint  :    /admin/realms/demo/users

and then we want to get the name and the email  from the accesstoken, 

KeycloakSecurityContext session = (KeycloakSecurityContext) request.getAttribute(KeycloakSecurityContext.class.getName()); AccessToken token=session.getToken();

but nothing there. 

Can anyone help on this?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151005/e8f25fba/attachment.html 

More information about the keycloak-user mailing list