keycloak-2fa-email-authenticator icon indicating copy to clipboard operation
keycloak-2fa-email-authenticator copied to clipboard

Set `configuredFor` if the user has an email

Open remyduthu opened this issue 9 months ago • 1 comments

The goal of this PR is to implement the configuredFor method. It returns true if the user has an email. Otherwise, it returns false. This is to prevent using the Email OTP when the user has no email.

remyduthu avatar May 06 '24 21:05 remyduthu

The idea would be to configure a multi-factor flow as mentioned here: https://github.com/keycloak/keycloak-community/blob/main/design/multi-factor-admin-and-step-up.md#flow-logic-examples. For example:

Screenshot 2024-05-06 at 23 29 59

remyduthu avatar May 06 '24 21:05 remyduthu