question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ui_locales` query parameter is ignored when `kc_idp_hint` is set

See original GitHub issue

Describe the bug

When trying to set the locale for KeyCloak and hint which IDP to use, KeyCloak ignores the ui_locales hint.

Version

15.0.2

Expected behavior

KeyCloak should respect the ui_locales hint when the user gets redirected from the IdentityProvider’s site.

For example when this is the first time the user logs in, and they need to verify their e-mail address.

Actual behavior

When the kc_idp_hint parameter is set KeyCloak disrespects the ui_locales parameter.

How to Reproduce?

  • Start a local KeyCloak instance. Configure at least 2 locale-s in your instance (I’ve used English and Hungarian)
  • Configure any Identity Provider (I used google). Set the realm’s settings to require email verification
  • Open the https://www.keycloak.org/app/, and enter the credentials. Click the Save btn.
  • put a breakpoint in keycloak.js at the 502th line.
  • Append the kc_idp_hint=google&ui_locales=hu to the variable url. (Or any Locale which is not your system’s locale)
  • Continue the execution
  • Continue with the login process
  • the verify your e-mail address will be shown to you in your system’s locale.

Anything else?

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
mposoldacommented, Aug 26, 2022

@kanguran @vilmosnagy I’ve replied on the PR. Sorry for the late review.

2reactions
stianstcommented, Nov 23, 2021

You’re correct. I misread and was thinking about kc_locale, the kc_idp_hint is a different thing of course. This seems to be a valid bug, so ignore my previous comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should a server ignore unrecognized query parameters OR ...
Should a server ignore unrecognized query parameters (i.e. not defined in the OpenAPI document) or should it throw a 400 exception?
Read more >
Ignoring query parameters within Sinatra POST request
Works fine when the data is POSTed to the endpoint https://myapp.com/deletewidget with the variable widgetid set within the headers or within a ...
Read more >
Query parameter is ignored when making a Directory API ...
Trying to make a users.list request in order to retrieve information about a specific user where the query parameter is supplied results in...
Read more >
Solved: How to ignore servlet requests with query paramete...
How can I set dispatcher and Akamai to ignore this query parameter, so that the requests from my servlet with this query parameter...
Read more >
Extra query parameter is ignore when rendering Glass Link
I have a template that maps to the following Glass model. [SitecoreType(AutoMap = true)] public class MyGlassModel { private Link link; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found