Closed eratolekov closed 2 months ago
Hi, thanks you for creating issue! will have a look
@eratolekov i added new param --allowed-query-params
, you can define params which will be forwarded e.g. --allowed-query-params="ui_locales="
, you can also restrict it to concrete value (only one) --allowed-query-params="ui_locales=it"
, there is 2.11.0-rc2 image
Hi p53
Thanks for spending your time.
I've added allowed-query-params
to config, but I had an error:
[error] unable to read the configuration file: /etc/gatekeeper/config.yaml, error: yaml: unmarshal errors:
line 1: cannot unmarshal !!str `myparam=` into map[string]string
My config.yaml:
allowed-query-params: myparam=
client-id: gogatekeeper
...
Also I tried:
allowed-query-params: myparam=qwe
allowed-query-params: "myparam="
allowed-query-params: "myparam=qwe"
With the same result.
I've read instruction at https://gogatekeeper.github.io/gatekeeper/userguide/#allowed-query-params-for-authentication It's not clear to me, where I went wrong.
Version: quay.io/gogatekeeper/gatekeeper:2.11.0-rc2
@eratolekov example in docu are command line flags, not yaml config...so for yaml config it should be:
allowed-query-params:
myparam: qwe
secondparam: two
will update docu to include also yaml example
m-m-m, my fault now work like a charm, thanks
Support of
ui_locales
query parameter at /oauth/authorize endpointSummary
The multi language web application generates Keycloak's login link based on the language selected. And Keycloak opens login page with that language (without action from user).
Why?
Useful for user's expirience. Right now user should choose language at web application, then should choose language at keycloak's login page.
How
/oauth/authorize?ui_locales=it
/realms/xxx/protocol/openid-connect/auth?access_type=online&client_id=gogatekeeper&redirect_uri=...&response_type=code&scope=email+profile+openid&ui_locales=it
IT
language is selected immediatelyAcceptance criteria
Additional Information
https://www.keycloak.org/docs/latest/server_admin/#_user_locale_selection