Loading
Salesforce now sends email only from verified domains. Read More
Help Agent Performance DegradationRead More
Identify Your Users and Manage Access
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Configure Settings for a Custom One-Time Password Provider

          Configure Settings for a Custom One-Time Password Provider

          To use your custom one-time password (OTP) delivery handler Apex class, add it to your Experience Cloud site settings.

          Required Editions

          Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
          Available in: Professional, Enterprise, Unlimited, and Developer Editions
          User Permissions Needed
          To customize an Experience Cloud site:
          • Be a member of the site AND Create and Set Up Experiences

            OR

          • Be a member of the site AND View Setup and Configuration AND an experience admin, publisher, or builder in that site
          To publish an Experience Cloud site:
          • Be a member of the site AND Create and Set Up Experiences

            OR

          • Be a member of the site AND an experience admin or publisher in that site

          Before you get started, create an Apex class that implements the Auth.CustomOneTimePasswordDeliveryHandler interface.

          To add a custom OTP delivery handler to an Experience Cloud site, you must contact Salesforce Customer Support. When Support gives you access to this feature, we recommend that you configure all Experience Cloud sites in your org to use a custom OTP provider. If you don't configure a custom OTP provider, though, the site uses the Salesforce default provider.

          1. Contact Salesforce Customer Support and ask to allow a custom messaging service for OTPs sent to external users.
          2. From Setup, in the Quick Find box, enter Sites, and then select All Sites.
          3. Next to your Experience Cloud site name, click Workspaces.
          4. Select Administration, and then select Login & Registration.
          5. Under Custom One-Time Password (OTP) Delivery, for OTP Delivery Handler, click lookup magnifying glass and search for the custom OTP delivery Apex class that you created.
          6. Save your changes.
          7. Test all configurations for your site that send an OTP via SMS. When you confirm that all use cases are working as expected, implement your changes in production.
           
          Loading
          Salesforce Help | Article