We are building our authentication management layer on KeyCloak (or RH-SSO, to be precise)
We have a registration screen where users can register themselves, as well as a programmatic flow for registering users (called from another app)
I have a custom REST endpoint which accepts a call to register a new user, creates the user and sends out the verification email.
The problem is that I cannot figure out how to programmatically send the verification email without using the admin client (UserResource.sendVerifyEmail())
And it seems a bit of a hack to have a REST endpoint within KeyCloak make a REST call to the admin end-point in turn to send the email. Is there a better way to implement this?