You did not mentioned which technology you are using its JS or Java .I
Assumed its Java you can check below sample code.
KeycloakSecurityContext securityContext = (KeycloakSecurityContext)
httpRequest.getAttribute(KeycloakSecurityContext.class.getName());
AccessToken accessToken = securityContext.getToken();
if(null != accessToken ){
userId = accessToken.getPreferredUsername();
}
On Tue, May 15, 2018 at 2:26 PM valsaraj pv <valsarajpv(a)gmail.com> wrote:
Hi,
User redirected to Keyclock & after successful login user redirected back
to application. Now there is no user information stored on application
side. Earlier it was in LDAP & we fetch user details from LDAP. Now how to
get user details in Keyclock based login scenario?
Please share if any useful links.
Thanks,
Valsaraj Viswanathan
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
--
Subodh Chandra Joshi
subodh1_joshi82(a)yahoo.co.in
http://www.trendsinnews.com