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.
- In the administration console, open the
openentrealm, then Authentication > Flows. - Duplicate the
browserflow to create a custom flow, for exampleOpenENT-OTP. - Add the steps:
- first factor: the Open ENT user storage provider;
- second factor: OTP Form.
- 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.