Keycloak java admin client verification email use standard emailVerification template

492 views
Skip to first unread message

Maciej Bąk

unread,
Oct 18, 2022, 5:57:45 AM10/18/22
to Keycloak User

in keycloak’s java admin client its possible to send verify email to the user:

realmUsersResource.get(userId).executeActionsEmail(List.of(startingAction))

or by

realmUsersResource.get(userId).sendVerifyEmail(keycloakResource)

but as we see the email content is different vs standard verification email being send by standard Keycloak UI registration form. While using standard form it sends email using emailVerificationSubject, emailVerificationBody taken from messages_en.properties ( in keycloak/theme/base/email/messages folder ) but when its send using admin client it uses executeActionsSubject, executeActionsBody.

I am registering user on my backend side, using admin client but I would like to use this emailVerification(Subject/Body) for emails… how to do it ? is it possible ?

thanks

Alessio Gaeta

unread,
Oct 24, 2022, 5:12:49 AM10/24/22
to Keycloak User
Hello,

it is an old known problem. Maybe upvoting the issue could help.

Regards
--
Alessio Gaeta
Reply all
Reply to author
Forward
0 new messages