Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth0_email_template resource is missing reset_email_by_code template option #1109

Open
6 tasks done
afrantsuzau opened this issue Jan 3, 2025 · 1 comment
Open
6 tasks done
Assignees
Labels
🪲 bug Something isn't working

Comments

@afrantsuzau
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this provider and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Auth0 terraform provider v1.9.1 is missing reset_email_by_code template option for auth0_email_template resource.

Expectation

However, it's available through the API:
https://auth0.com/docs/api/management/v2/email-templates/get-email-templates-by-template-name

Reproduction

  1. Given
resource "auth0_email_template" "reset_email_by_code" {
  enabled = true
  syntax  = "liquid"

  template = "reset_email_by_code"

  from    = var.default_from_address
  subject = "Reset Email by Code"

  body = base64decode(data.gitlab_repository_file.reset_email_by_code.content)

  # Optional
  include_email_in_redirect = true
  result_url                = null
  url_lifetime_in_seconds   = null

  depends_on = [auth0_email_provider.smtp_email_provider]
}
  1. When template = "reset_email_by_code"
  2. Error: expected template to be one of ["verify_email" "verify_email_by_code" "reset_email" "welcome_email" "blocked_account" "stolen_credentials" "enrollment_email" "change_password" "password_reset" "mfa_oob_code" "user_invitation"], got reset_email_by_code

Auth0 Terraform Provider version

1.9.1

Terraform version

1.9.8

@afrantsuzau afrantsuzau added the 🪲 bug Something isn't working label Jan 3, 2025
@ramya18101 ramya18101 self-assigned this Jan 7, 2025
@ramya18101
Copy link
Contributor

Hello @afrantsuzau, We are currently working on supporting the reset_email_by_code template in this sprint.

Changes gets deployed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants