Only allow specific emails to register.
Using user profile capabilities of keycloak you can define a Regexp on the email field that will only allow certain domails to register.
The Regexp should look something like thisarrow-up-right and can be generated easily with this helperarrow-up-right.
Find the source code of the register page showed in the video herearrow-up-right.
The legacy way of doing it would be with this pluginarrow-up-right and usingkcContext["authorizedMailDomains"] to validate in realtime.
kcContext["authorizedMailDomains"]
Relevent code herearrow-up-right and herearrow-up-right.
Last updated 8 months ago
Was this helpful?