keycloak-2fa-email-authenticator
keycloak-2fa-email-authenticator copied to clipboard
Set `configuredFor` if the user has an email
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.
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: