Keycloak v15.0.2 registration email validator

I’m using keycloak v15.0.2.

The problem is that, in the registration form, keycloak considers valid the mail inserted in the image belove

image

How can I avoid this behaviour?

Technically this is a valid emailadress, assuming a local domain, although discouraged (Email address - Wikipedia).

You might be able to add an additional pattern/regex validator, which has a more strict validation.

Yes, you’re right, but for my business model it’s not.

Do you know how to add pattern/regex validator from admin console?
Or Have I to change the template?

With such an ancient version of keycloak, you’ll have to write a custom registration validator.

With the declarative-user-profile, which became standard in v24, you can just configure it from the admin console.

1 Like