You can configure a custom phone provider with the Terraform Auth0 provider. The Terraform Auth0 provider is used to interact with the Auth0 Management API in order to configure an Auth0 Tenant. To learn more, review Terraform’s Auth0 Provider documentation.Documentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- If you are using Terraform to configure a custom phone provider, delete your existing Auth0 tenant custom phone provider.
- Auth0 has a maximum limit of one Action for Actions associated with the following triggers: custom-phone-provider and custom-email-provider.
- Create an
auth0_action:
In order to bind a Terraform
auth0_action to an auth0_trigger_action, set the auth0_action to deploy = true. To learn more, read Terraform’s auth0_action documentation.- Bind the
auth0_actionto the custom-phone-providerauth0_trigger_action:
- Configure the
auth0_phone_providerresource to use theauth0_action:
Troubleshoot
Scenario: Custom phone provider configured using Terraform is not taking effect, and the displays a different Action. You may have multiple custom provider Actions withdeploy: true. Auth0 has a maximum limit of one Action for Actions associated with the following triggers: custom-phone-provider and custom-email-provider.
- If you encounter this scenario, it’s recommended that you list your Actions to identify any duplicates to delete.
- If you encounter this scenario after managing your custom providers through multiple methods (Terraform, Auth0 Dashboard, , and/or Auth0 SDKs) it is advisable to reset the custom provider configuration. We recommend you refrain from using multiple methods to manage your custom provider.