Skip to main content

Multi-factor authentication

Multi-factor authentication combines the platform's own user storage provider, which checks the password against the directory, with a one-time password as a second factor.

Enabling the one-time password​

Keycloak includes a one-time password authenticator.

  1. In the administration console, open the openent realm, then Authentication > Flows.
  2. Duplicate the browser flow to create a custom flow, for example OpenENT-OTP.
  3. Add the steps:
    • first factor: the Open ENT user storage provider;
    • second factor: OTP Form.
  4. Set the requirement of both steps to REQUIRED.

Making it mandatory​

Under Authentication > Required Actions, enable Configure OTP. Members are then required to set up a one-time password at their next sign-in.

A custom second factor​

A custom authenticator can replace the standard one, for example to store the member's one-time password secret as an attribute in the directory.

Other factors​

The same flow model accepts other factors: biometric authentication, hardware keys, or a code sent by e-mail or text message.