How to Integrate MSG91 with Auth0

How to Integrate MSG91 with Auth0


MSG91 has created a one stop solution for all Auth0 users to send Multi Factor Authentication communication(MFA) through multiple channels like Text message, Whatsapp, RCS, Emails and Voice Call. Create Automations like: If the country code is "+34" then the text message/Whatsapp/Voice/Email/RCS will be in Spanish. If the country code is "+91" then the text message/Whatsapp/Voice/Email/RCS will be in Hindi. We support such regional language automations.


MSG91 provides cloud communication services in 190+ countries with robust and easy to use APIs. For any queries, please contact [email protected]


Prerequisites

  1. An Auth0 account and tenant. Sign up for free

  2. Signup at MSG91

Set up MSG91

To configure the integration with MSG91, follow the steps below.

  1. Add your DLT details into MSG91 account to create SMS templates.

  2. Create Email, Whatsapp, RCS and Voice templates at MSG91.

  3. Create campaigns and set up the flow of messages.

Add the Auth0 Action

  1. Select Add Integration (at the top of this page).

  2. Read the necessary access requirements and click Continue.

  3. Configure the integration using the following fields:

    • Enter Authkey in the secret field.

    • Enter Campaign ID in the configuration field.

  4. Click Create to add the integration to your Library.

  5. Click the Add to flow link on the pop-up that appears.

  6. Drag the Action into the desired location in the flow.

  7. Click Apply Changes.

Activate custom SMS factor

To use the SMS factor, your tenant needs to have MFA enabled globally or required for specific contexts using rules. To learn how to enable the MFA feature, see:

The last steps are to configure the SMS Factor to use the custom code and test the MFA flow. Note: Once you complete the steps below, Auth0 will begin using this factor for MFA during login. Before activating this integration in production, please make sure you have configured all components correctly and verified on a test tenant.

  1. Go to Dashboard > Security > Multi-factor Auth and click the Phone Message factor box.

  2. In the modal that appears, select Custom for the delivery provider, then make any adjustments you'd like to the templates. Click Save when complete, and close the modal.

  3. Enable the SMS factor using the toggle switch to begin using this factor.

Test MFA flow

Trigger an MFA flow and verify that everything works as intended.

Troubleshoot

If you do not receive the text message, look at the tenant logs. Look for a failed SMS log entry. To learn which event types to search, see the Log Event Type Code list, or you can use the Filter control to find MFA errors.

Make sure that:

  • The Action is in the Send Phone Message flow.

  • The secrets are the same ones you created in the steps above.

  • Your MSG91 account is active (not suspended).

  • Your phone number is formatted using the E.164 format.



Prev
Next