Keycloakify
GitHubHomeStarter project
v6
  • Documentation
  • Release Notes & Upgrade Instructions
  • FAQ
v6
  • 👨‍💻Quick start
  • 🔩Keycloakify in my App
  • 📧Email customization
  • ✒️Terms and conditions
  • ✅Realtime input validation
  • ⚠️Limitations
  • 🌉Context persistence
  • 🌎i18n: msg(...)
  • 💂Email domain acceptlist
  • 🛑Keycloak error in log
  • 💟Contributing
  • 📖Build options
  • 🏁Requirements
  • ⬆️v5 -> v6
  • ⬆️v6.x -> v6.12
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Email domain acceptlist

Only allow specific emails to register.

Previousi18n: msg(...)NextKeycloak error in log

Last updated 2 years ago

Was this helpful?

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 and can be generated easily with .

Find the source code of the register page showed in the video .

The legacy way of doing it would be with and usingkcContext["authorizedMailDomains"] to validate in realtime.

Relevent code and .

💂
something like this
this helper
here
this plugin
here
here
Can't register with a @gmail.com address