Keycloakify
GitHubHome
v5
  • Documentation
  • Release Notes & Upgrade Instructions
  • FAQ
v5
  • ๐ŸRequirements
  • ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จ๐Ÿ’ป Quick start
  • ๐ŸงชDevelopment
  • ๐Ÿ“งEmail customization
  • โœ’๏ธTerms and conditions
  • โœ…Realtime input validation
  • โš ๏ธLimitations
  • ๐ŸŒ‰Context persistence
  • ๐ŸŒAdding i18n messages keys
  • โšกPerformance optimization
  • ๐Ÿ’‚Email domain acceptlist
  • ๐Ÿ›‘Keycloak error in log
  • ๐Ÿ’ŸContributing
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF

Email domain acceptlist

Only allow specific emails to register.

PreviousPerformance optimizationNextKeycloak error in log

Last updated 3 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