Sign-up and auth

Keycloak integration

A step of your realm’s registration form checks the email address of every new self-registration and stops the ones you do not want, by default addresses that cannot receive mail and throwaway inboxes, before Keycloak creates the user. When a check cannot be made, the registration goes through as if the step were not there.

Read the full setup guideGet an API key

  • Setup guide
  • One jar for Keycloak 26, no dependencies of its own

The step’s settingsregistration form, Required

Settings
API key       your key, or a vault reference
Region        us, or eu for EU data residency
Stop          invalid, disposable  (the default)
Log only      off
Message       your own wording (optional)

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Realms that let people register themselves on Keycloak’s login page and want an address that cannot receive mail, or a throwaway inbox, turned away before the account exists.
You need
Keycloak 26 with its providers/ folder in your hands (a server or your own container image), a realm with user registration on, and an API key made for it, with a daily credit cap.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses and test addresses on sandbox.email-validation.org.
Full guide
Read the full setup guide

Typical uses.

  • Stop dead addresses

    An invalid result shows the form again with a message under the email field, and adds Did you mean …? when the API suggests a correction.

  • Keep throwaway inboxes out

    Disposable addresses are stopped by default, with their own message asking for a permanent address.

  • Watch before you stop

    Turn on Log only and the step stops nothing: it writes each result to Keycloak’s log, so you can see what it would do first.

Set it up. 4 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

Read the full setup guide

  1. Download the jar

    It is not on a marketplace: download the jar from the guide and copy it into Keycloak’s providers folder, then run kc.sh build and restart Keycloak.

  2. Add the step

    In the admin console, open Authentication, Flows, duplicate the registration flow, and add the step email-validation.org address check to its registration form as Required.

  3. Add your key and bind the flow

    Open the step’s settings, give it an alias and paste your API key, or a vault reference. Then bind the flow for registration.

  4. Try it

    Register with no_mailbox@sandbox.email-validation.org: it is stopped, at no cost. Never register with a test address that goes through, such as accepted@sandbox.email-validation.org: with Verify email on, Keycloak would mail it, and the bounce hurts your sender.

Good to know.

  • Only registrations on the login page are checked: not users an admin creates, the first login through an identity provider such as Google, users from LDAP, or a later change of address.

  • The step waits at most a few seconds and never retries. With no answer in time, a wrong key, no credits or any error, the registration goes through and Keycloak’s log line holds the reason, never the address.

  • An unknown result caused by our side, a timeout or an internal error, never stops a registration, whatever you choose to stop.

  • The step sends only the email address, to our US or EU host: not the person’s name or IP address.

Connect Keycloak
in a few minutes.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC