[keycloak-user] OpenID Connect: userkey instead of username

Stian Thorgersen sthorger at redhat.com
Mon Mar 27 13:44:35 EDT 2017


sub is the unique id of the user. There is a separate claim in the token
preferred_username that gives you the users username.

On 27 March 2017 at 15:56, Tech <tech at psynd.net> wrote:

> Dear experts,
>
> we are working with an application that implements with a plugin OIDC.
>
> What we detected is that when we run the authentication for a local user
> present into Keycloak, the remote username appearing on the application
> is the Keycloak's userKey instead of the Keycloak's username.
>
> Is there anything that we should do to retrieve instead the username?
>
> Thanks!
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list