Replacement for preferred-username (Migration of keycloak.json to oidc.json)

85 views
Skip to first unread message

Daniel K.

unread,
Dec 22, 2021, 2:46:13 PM12/22/21
to WildFly
Hi guys,

can someone help me with the migration from keycloak-adapter to the new security subsystem (OIDC)? In the keycloak adapter i used the preferred-username setting to map a specific IdToken field to UserPrincipal's name field.

With OIDC there is no setting anymore and after login the UserPrincipal hase name=null. Login against a keycloak server is working so far (incl. the roles). But i need the UserPrincipal name after the successful login for my application :(

Thanks in advance,

Daniel K.
Reply all
Reply to author
Forward
0 new messages