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
There is a small issue with how realm display names are handled in email templates when the displayName of the realm is an empty string. This results in an email with a missing <realm-name> placeholder.
Example email body:
Someone requested a login link to
Click to log in.
Cause:
The `realmName˛ attribute is initially set with proper checks for empty strings.
However, Keycloak's FreeMarkerEmailTemplateProvider overrides this attribute without handling empty strings properly.
Enhancement Request
We'd like to enhance the email behavior so that if the OAuth client has a name, it is used in place of the realm's displayName.
Proposed Fix and Enhancement
Bug Fix:
Rename the realmName attribute to avoid conflicts with Keycloak's default behavior, ensuring empty strings are handled correctly.
Enhancement Implementation:
Modify the email logic to prefer the client's name (if available) over the realm's displayName or name.
The text was updated successfully, but these errors were encountered:
vilmosnagy
added a commit
to realCity/keycloak-magic-link
that referenced
this issue
Nov 26, 2024
Description
Bug Report
There is a small issue with how realm display names are handled in email templates when the
displayName
of the realm is an empty string. This results in an email with a missing<realm-name>
placeholder.Example email body:
Cause:
FreeMarkerEmailTemplateProvider
overrides this attribute without handling empty strings properly.Enhancement Request
We'd like to enhance the email behavior so that if the OAuth client has a name, it is used in place of the realm's displayName.
Proposed Fix and Enhancement
Bug Fix:
realmName
attribute to avoid conflicts with Keycloak's default behavior, ensuring empty strings are handled correctly.Enhancement Implementation:
The text was updated successfully, but these errors were encountered: