Repository navigation
Resolve realm display name localization placeholders in TOTP issuer name - #48700
Conversation
c27aa78 to
4f0f206
Compare
|
I kept issuer resolution in
These dependencies belong to the service layer rather than the SPI layer. As a result, Additionally, |
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.forms.BruteForceTest#testNoFailureResetForPermanentLockout |
4f0f206 to
a3a19f4
Compare
Resolve the realm display name before it is used as the issuer name when configuring TOTP credentials. This allows values that use localization placeholder syntax (e.g., ${realm.displayName}) to be resolved using the LOGIN theme messages and the user’s resolved locale, so authenticator applications show the localized display name instead of the raw placeholder.
Fixes keycloak#48680
Signed-off-by: Mohammed Elbagoury <m.a.bagoury@gmail.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
a3a19f4 to
ea80308
Compare
There was a problem hiding this comment.
Just polished it a little. LGTM, thanks!
|
@rmartinc Could you please check this little PR? Thanks! I was able to reproduce it and the fix works now. |
There was a problem hiding this comment.
Thanks for the PR @mabagoury! LGTM!
…ame (keycloak#48700) * Resolve realm display name localization placeholders in TOTP issuer name Resolve the realm display name before it is used as the issuer name when configuring TOTP credentials. This allows values that use localization placeholder syntax (e.g., ${realm.displayName}) to be resolved using the LOGIN theme messages and the user’s resolved locale, so authenticator applications show the localized display name instead of the raw placeholder. Fixes keycloak#48680 Signed-off-by: Mohammed Elbagoury <m.a.bagoury@gmail.com> * Cleanup the TotpUtils + add deprecation Signed-off-by: Martin Bartoš <mabartos@redhat.com> --------- Signed-off-by: Mohammed Elbagoury <m.a.bagoury@gmail.com> Signed-off-by: Martin Bartoš <mabartos@redhat.com> Co-authored-by: Martin Bartoš <mabartos@redhat.com>
Resolve the realm display name before it is used as the issuer name when configuring TOTP credentials. This allows values that use localization placeholder syntax (e.g., ${realm.displayName}) to be resolved using the LOGIN theme messages and the user’s resolved locale, so authenticator applications show the localized display name instead of the raw placeholder.
Fixes #48680