-
OmniAuth login can now count as two factors when account is using 2FA. This is useful when using OmniAuth login as SSO, and one can rely on an 2FA policy on the external provider.
omniauth_two_factors? true
This can also be made conditional based on data from the external provider, for example:
omniauth_two_factors? do # only count as two factors if external account uses 2FA omniauth_extra["raw_info"]["two_factor_authentication"] end