Problem statement
We are using Terraform to deploy changes to Auth0. We have this code snippet:
resource "auth0_guardian" "mfa_guardian" {
policy = "never"
email = false
otp = false
recovery_code = false
phone {
provider = "phone-message-hook"
message_types = ["sms"]
options {
enrollment_message = "Custom message here. When prompted, enter the following
security code - {{code}}."
verification_message = "Custom message here. When prompted, enter the following
security code - {{code}}.
}
}
}
When deployed, Terraform is able to acknowledge this code. However, the Auth0 enrollment and verification template for Phone Message MFA does not get updated.
Can you let me know why it’s not working?
Cause
was using an older version of the Auth0 Terraform provider (v0.39.0). A change was made to a later version making it so that older versions may not be able to update the enrollment_message and verification_message for SMS MFA.
Solution
You were using an older version of the Auth0 Terraform provider (v0.39.0). A change was made to a later version making it so that older versions may not be able to update the enrollment_message and verification_message for SMS MFA.
Updating the Auth0 Terraform provider to v0.49.0 will solve this issue.