Authsignal secures millions of passkey transactions out of our hosted Sydney region.

Authsignal secures millions of passkey transactions out of our hosted Sydney region.

Join us today!
Blog
/
Current article

Enable MFA for Auth0 with Authsignal in 5 Easy Steps - Authsignal

Last Updated:
March 3, 2025
Justin Soong
Adaptive MFA and or Passkeys for Auth0 with Authsignal
AWS Partner
Authsignal is an AWS-certified partner and has passed the Well-Architected Review Framework (WAFR) for its Cognito integration.
AWS Marketplace
How to enable MFA for Auth0 using Authsignal

Auth0 is a great platform for adding core identity functionality to your app, especially for requirements like federation (Single Sign On or “SSO”), token management, or using their Universal Login page.

But there are a few reasons why you might want to turbo-charge Auth0’s base functionality with additional tools like Authsignal, especially when it comes to MFA and step-up authentication.

Here are a few reasons:

  • You want to enable more Passwordless MFA factors without upgrading your Auth0 plan.
  • You want flexibility on how and when to enrol a user for MFA.
  • You want to control exactly when and where users must complete step-up MFA challenges in your app with conditional logic. This logic might need to depend on the action or transaction which the user is performing and not on their authenticated session (the technical term for this is “transaction signing”).
  • You want to add step-up authentication flows anywhere in your app without having to build your own UI (similar to Auth0’s Universal Login Page — but for MFA). This could include other user-facing touch points like customer support chatbots.
  • You want to keep an audit trail of reasons why a user has been prompted to complete an MFA challenge.
  • Your app is in a highly security-focused vertical — like Crypto On-Ramps, FinTech and Marketplaces — which typically have more nuanced MFA requirements.

Authsignal’s suite of tools provides solutions to all of the above, giving your app more flexibility and visibility without the need to migrate away from Auth0.

The key features of Authsignal for Auth0 are:

This blog post will demonstrate how to add MFA to your app by integrating Auth0 with Authsignal in five quick steps.

Step 1 — Create an Auth0 Action

In the Auth0 Dashboard, go to Actions → Library and select “Build Custom”. Then select the “Login / Post Login” trigger and give the action an appropriate name (for example “post-login-mfa”).

Create an Auth0 Action
Step 2 — Add your Authsignal Secret Key

Now your action has been created, create a new secret called AUTHSIGNAL_SECRET and provide the value of your secret from the API Keys section in the Authsignal Portal.

Defined the Authsignal Secret Key
Step 3 — Add Dependencies

Add the @authsignal/node dependency.

Add the Authsignal NodeJS npm package
Step 4 — Add the Authsignal for Auth0 action code

Add the following code snippet to the action.

const { handleAuth0ExecutePostLogin, handleAuth0ContinuePostLogin } = require("@authsignal/node");

exports.onExecutePostLogin = handleAuth0ExecutePostLogin;

exports.onContinuePostLogin = handleAuth0ContinuePostLogin;
Step 5 — Add the Authsignal for Auth0 action code

Now connect your action in the Flows section of the Auth0 Dashboard by dragging it into the Login flow.

And that’s it, the above 5 steps are all that you have to configure within your Auth0 tenant, and everything else is handled seamlessly by Authsignal. It’s that simple.

Now, you can set up MFA for Auth0 with Authsignal. You can learn how to fine-tune your user experience with adaptive MFA with just a few adjustments to your integration code

To view the comprehensive documentation, check out our Developer Docs, sign up to Authsignal and start enabling MFA for Auth0.

Try out our passkey demo
Passkey Demo
Have a question?
Talk to an expert
You might also like
Supercharge Passwordless Authentication with AWS Cognito and Authsignal's Web SDK, and React
In this guide, we'll explore how you can pair Cognito with Authsignal's MFA capabilities using the AWS SDK, Authsignal Web SDK, and React. This combination gives you the complete freedom to build your own custom UI while maintaining all the security standards.
How to add MFA to Duende IdentityServer with Authsignal
Learn how to implement multi-factor authentication (MFA) in your Duende IdentityServer using Authsignal. Secure your ASP.NET Core login flow with step-by-step instructions, complete code examples, and GitHub resources.
How to add passkeys to Keycloak with Authsignal: A Step-by-Step Guide
Learn how to enhance your Keycloak authentication flow by adding passkeys with Authsignal. This step-by-step guide covers setup, passkey enrollment, autofill implementation, and custom Keycloak configurations for a seamless and secure user experience.

Secure your customers’ accounts today with Authsignal.