Is it possible to obtain the token or uri of verify email, to generate a company specific email for new users? We have some companies that would like to use their own logo and text for the email, and some that just would like to use our email theme.
If this is possible, we could obtain the token/uri and create the email based on their “template” and insert the verify email link.
I dont have any code written yet, but the plan is, that companies can parse a HTML template to my API on how the email should look. Then my API would call a keycloak endpoint and get a verification link for that user back, so that I can use it in the template the company sent me. And then send the email from my API.
My plan is to parse the necessary things to keyclock endpoint for generating the link: userId, clientId and realm, and then return the link for to verify email.
If you have time, would you be able to give me some feedback on my code?
This works like I would like it to, but I cannot figure out how to make the call authorized with an admin account.
Is there a way that I can change the path to be /auth/admin/realms insted of /auth/realms?
I’m late to this discussion. But still… if your customers are all just in there own realm, you can very quickly just customize a theme for each of them. No Java programming, just theming (and this can include all email message text customizations). Stick with the default behavior as much as possible . The theme is just packed as a jar and placed as an extension, done. Another item… hook up the build pipeline with poeditor.com and have the customer maintain the text modules themselves…