[keycloak-dev] Retrieving the current logged in username
Bill Burke
bburke at redhat.com
Mon Jun 9 18:48:46 EDT 2014
can you get the Principal? KeycloakPrincipal p =
(KeycloakPrincipal)securityContext.getUserPrincipal();
KeycloakSecurityContext ctx = p.getKeycloakSecurityContext();
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
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
More information about the keycloak-dev
mailing list