You can use Cloudflare Access to require that users log in to certain applications with specific types of multifactor authentication (MFA) methods. For example, you can create rules that only allow users to reach a given application if they authenticate with a physical hard key.
This feature is only available to teams using the following identity providers:
- Azure AD
To add an MFA requirement to your application:
On the Teams dashboard, navigate to Access > Applications and select the application for which you want to enforce MFA. Alternatively, create a new application.
In the Policies section of the a application, edit an existing rule that contains an identity requirement or add a new rule.
The rule must contain an Include rule which defines an identity. For example, the Include rule should allow for users who are part of an email domain, identity provider group, or Access Group.
In the rule builder, add a Require action.
Select Authentication Method and choose
mfa - multiple-factor authentication.
- Save the rule.
Adding authentication methods into the JWT
Certain identity providers can also share the multifactor authentication (MFA) method presented by the user to login. Cloudflare Access can add these values into the JWT and force. For example, if the user authenticated with their password and a physical hard key, the identity provider can send a confirmation to Cloudflare Access. Cloudflare Access then stores that method into the same JWT issued to the user.