Integrating Prelude with Auth0 for Secure and Reliable SMS Authentication
By integrating Prelude’s API v2, you gain access to a more robust and customizable SMS verification process, ensuring that authentication codes are delivered securely and consistently.
Benefits of Using Prelude with Auth0
- Improved SMS Deliverability – Prelude offers high success rates for message delivery, reducing the risk of authentication failures.
- Anti-Fraud Protection – Prelude’s advanced fraud detection system helps prevent abuse of your authentication system by identifying and blocking suspicious patterns.
- Multi-Region Routing – Prelude automatically routes messages through the optimal carrier network based on the destination country, ensuring fast delivery worldwide.
- Multi-Channel Support – Prelude supports SMS, WhatsApp, Viber and RCS channels for verification codes, giving your users more flexibility in how they receive authentication codes.
- Seamless Integration – Works effortlessly with Auth0’s phone authentication, allowing you to set up in minutes.
This guide walks you through the integration process step-by-step, so you can enhance your Auth0 authentication system with Prelude’s powerful API.
Prerequisites
- A Auth0 project.
- A Prelude account.
Step 1: Configure Prelude for Auth0
- Enable the Auth0 integration by going to Settings > Integrations > Auth0 in your Prelude’s Dashboard.
- Create a new Secret Key for your Auth0 integration on Settings > API Keys and don’t forget to save or copy it.
Step 2: Add the Action on Auth0
- Click Add Integration at the top of the page
- Review the required access permissions and click Continue
- Set up the integration:
- Enter your Prelude Secret Key
- Click Create to save the integration in your Library
- In the pop-up window, select Add to flow
- Drag the Action element to your preferred spot in the flow
- Click Apply Changes to finalize
Step 3: Activate custom SMS on Auth0
- Go to Dashboard > Security > Multi-factor Auth
- Click the Phone Message factor box
- In the modal that appears:
- Select Custom for the delivery provider
- Choose SMS as a delivery method
- Message template is not supported yet
- Click Save and close the modal
- Enable the SMS factor using the toggle switch
For more details on enabling and customizing MFA in Auth0, see:
You’re All Set!
Congratulations! You’ve successfully integrated Prelude with your Auth0 project. Now when users authenticate using phone numbers in your Auth0 application, Prelude will handle the SMS verification process seamlessly.