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?
T.I.A
Mai