Include user locale to the Keycloak ID token

后端 未结 2 740
星月不相逢
星月不相逢 2021-01-27 11:57

I would like Keycloak (1.4.0) to include the users\' chosen locale to the ID token.

I have come as far as creating a user attribute mapper, which was supposed to map the

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-27 12:23

    I have managed to solve the problem on my own. I ended up using loadUserProfile() function from Keycloak JS adapter. It loads all the user attributes (including locale) into keycloak.profile object, so I didn't have to configure any mappers.

提交回复
热议问题