Requesting a given locale on login

363 views
Skip to first unread message

Perot Francis

unread,
Sep 30, 2022, 4:57:32 AM9/30/22
to Keycloak Dev

Hi all,

 

We are facing an issue when trying to log in to a client using a brokered client of another realm.

When setting kc_locale=it, we can see that the parameter is not taken into account. (In the code, the parameter is processed only when going through /authenticate: in that case, a session note is set… and when evaluating the locale to be used to render a page, this authentication note is the first check). If I set the “Forwarded query parameters” with the value kc_locale, the value is transmitted to the brokered login but still not took into account.

 

The problem is quite the same with ui_locales.

Is there something we are doing wrong or is it an issue in Keycloak?

I saw some already reported similar issues in versions 9 to 14 (at least)… example: https://stackoverflow.com/questions/64517990/why-are-kc-locale-and-ui-lang-switch-not-working

 

Francis Pérot

Senior software engineer

 

Logo

Description automatically generated

 

    

 

This message may contain confidential and/or privileged information. If you are neither the addressee nor

Authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on

this message or any  information herein. If you have received this message in error, please contact the sender

and delete this message. Thank you.

 

Vilmos Nagy

unread,
Sep 30, 2022, 9:33:49 AM9/30/22
to Keycloak Dev
Hi,

If I understand you correctly, this is the related issue: https://github.com/keycloak/keycloak/issues/8827
It was reported almost a year ago, and the fix was merged a couple of weeks ago. Probably will be included in 20.0, but I'm not sure of that.

Regards,

Perot Francis

unread,
Oct 3, 2022, 11:04:59 AM10/3/22
to Vilmos Nagy, Keycloak Dev

Hi,

 

My bad… it was just a misconfiguration.

I had to switch on “Pass current locale”… and did not need to use “Forwarded query parameters”.

So there is no bug for what I’m trying to do.

 

Regards,

Francis

 

From: keyclo...@googlegroups.com <keyclo...@googlegroups.com> On Behalf Of Vilmos Nagy
Sent: vendredi, 30 septembre 2022 15:34
To: Keycloak Dev <keyclo...@googlegroups.com>
Subject: [SOCIAL NETWORK] [keycloak-dev] Re: Requesting a given locale on login

 

 

EXTERNAL MESSAGE - This email comes from outside ELCA companies.

Hi,

 

If I understand you correctly, this is the related issue: https://github.com/keycloak/keycloak/issues/8827

It was reported almost a year ago, and the fix was merged a couple of weeks ago. Probably will be included in 20.0, but I'm not sure of that.

 

Regards,

 

On Friday, September 30, 2022 at 10:57:32 AM UTC+2 Perot Francis wrote:

Hi all,

 

We are facing an issue when trying to log in to a client using a brokered client of another realm.

When setting kc_locale=it, we can see that the parameter is not taken into account. (In the code, the parameter is processed only when going through /authenticate: in that case, a session note is set… and when evaluating the locale to be used to render a page, this authentication note is the first check). If I set the “Forwarded query parameters” with the value kc_locale, the value is transmitted to the brokered login but still not took into account.

 

The problem is quite the same with ui_locales.

Is there something we are doing wrong or is it an issue in Keycloak?

I saw some already reported similar issues in versions 9 to 14 (at least)… example: https://stackoverflow.com/questions/64517990/why-are-kc-locale-and-ui-lang-switch-not-working

 

Francis Pérot

Senior software engineer

 

Image removed by sender. Logo

Description automatically generated

 

Image removed by sender.  Image removed by sender.  Image removed by sender.

 

This message may contain confidential and/or privileged information. If you are neither the addressee nor

Authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on

this message or any  information herein. If you have received this message in error, please contact the sender

and delete this message. Thank you.

 

--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/3259612b-223f-4a0c-99a9-1b4f2f7c181cn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages