p2-inc / keycloak-magic-link

Magic Link Authentication for Keycloak
https://phasetwo.io
Other
245 stars 50 forks source link

Fix Realm DisplayName Bug with Email Content enhancement #97

Open vilmosnagy opened 3 days ago

vilmosnagy commented 3 days ago

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:

Someone requested a login link to  
Click to log in.

Cause:

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:

Enhancement Implementation: