keycloak-containers-demo
keycloak-containers-demo copied to clipboard
domain whitelisting and registration features
Hello,
I have 2 features to suggest :
- Email domain whitelisting : It would be nice to be able to whitelist the domain that will be allowed to use the magic link. I bump into this lib https://github.com/micedre/keycloak-mail-whitelisting that works perfectly but I would like to know if it would be hard to combine the magic link with this whitelisting domain? I currently update the source code of magic link to include the following code that will whitelist the domain :
if (!email.endsWith("@gruion.com")) {
context.challenge(context.form().createForm("view-error.ftl"));
}
else{
But it would be great to have it included in the lib. Would it be hard to "merge" the libraries (magic link and whitelisting domain)? We can maybe try to collaborate with @micedre. I dont have the knowledge to do it myself, but i can help
- redirect to register page instead of creating user if user does not exist On top of above feature it would be nice to have the possibility to allow of not the user creation if he exists or not. Currently if the user does not exist, it is automatically created, even if the email is not valid. I would like to redirect the user to the registration page (to force the user fill up user details for example). once registered, he can use the magic link
Best regards Cyril