'Keycloak - sending verification email to new registered user with relevant email address domain and add him to users group
I have a web app with authentication by Keycloak. New registered users default don't get any roles and when they want to use the app, they should see an appropriate message (they should send an email to the appropriate mail address and after that admin should add them to the user group with user permissions).
I want to change, that users with relevant email address domain (e.g for @xyz.com: [email protected], [email protected]) got a verification email with a link. After clicking on the link, the app should add them to the user group with user permissions.
Others (e.g. [email protected]) should not receive the email, but should still see the message after logging into the app.
Somebody could prompt is it possible to do something like this in the Keycloak and how do that?
Alternatively, can I block some email domains in Verification email events?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|