You are probably looking for KeycloakSecurityContext.getToken().getPreferredUsername()?
On 6/9/2014 5:39 PM, Bruno Oliveira wrote:
Good morning guys,
Which way is the best to retrieve the current logged in username? I'm
trying with KeycloakSecurityContext, but no luck.
Thanks in advance.
--
abstractj
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev