Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

domain whitelisting and registration features #12

Open
cyril36 opened this issue Jan 8, 2022 · 0 comments
Open

domain whitelisting and registration features #12

cyril36 opened this issue Jan 8, 2022 · 0 comments

Comments

@cyril36
Copy link

cyril36 commented Jan 8, 2022

Hello,

I have 2 features to suggest :

  1. 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

  1. 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant