[keycloak-dev] Retrieving the current logged in username

Stan Silvert ssilvert at redhat.com
Mon Jun 9 17:51:20 EDT 2014


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev



More information about the keycloak-dev mailing list