You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing user locale for newly created users via default OIDC identity brokering
#39583
Hello everyone, I'm currently trying to integrate Keycloak 26.2.2 with my React application. It's working fine for the most part, but I still got a problem when I try to utilize localization and OIDC identity brokering.
I've got a Keycloak realm, which has a Client for my React application and Google set up as an identity broker. The React application is forwarding me properly to the Keycloak UI, passing my preferred languague via &ui_locales=de as a query parameter, which appropriately handles the language shown in Keycloak's Login UI. From here, I can do three different things:
Register normally with Keycloak: Works as expected, the language passed to Keycloak is stored as a user attribute.
Change the language with the drop down box in the Keycloak UI and login/register via Google OIDC: Works as expected, the language I actively changed to on Keycloak's UI is stored as a user attribute. Note: If I switch the language, a different URL is being loaded, without the ui_locales parameter, but with the kc_locale parameter.
Login/register directly via Google OIDC: Works not as expected. If I directly try to login with the identity broker, a new user is being created, but no locale is stored in the DB, even if the passed language via ui_locales is different from the default language in Keycloak and is still a supported one.
I need the user locale being set for each user, to set it as a claim in my Tokens, to accordingly toggle the language on my UI side and handle server related i18n stuff.
Am I missing some specific setting to get the last scenario to work, or is this a bug?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone, I'm currently trying to integrate Keycloak 26.2.2 with my React application. It's working fine for the most part, but I still got a problem when I try to utilize localization and OIDC identity brokering.
I've got a Keycloak realm, which has a Client for my React application and Google set up as an identity broker. The React application is forwarding me properly to the Keycloak UI, passing my preferred languague via
&ui_locales=deas a query parameter, which appropriately handles the language shown in Keycloak's Login UI. From here, I can do three different things:ui_localesparameter, but with thekc_localeparameter.ui_localesis different from the default language in Keycloak and is still a supported one.I need the user locale being set for each user, to set it as a claim in my Tokens, to accordingly toggle the language on my UI side and handle server related i18n stuff.
Am I missing some specific setting to get the last scenario to work, or is this a bug?
All reactions