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

Missing prompt types from auth0_prompt_custom_text resource #497

Closed
6 tasks done
Gipphe opened this issue Feb 17, 2023 · 1 comment
Closed
6 tasks done

Missing prompt types from auth0_prompt_custom_text resource #497

Gipphe opened this issue Feb 17, 2023 · 1 comment

Comments

@Gipphe
Copy link

Gipphe commented Feb 17, 2023

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

Specifying login-passwordless or logout in auth0_prompt_custom_text's prompt field produces an error.

This despite that login-passwordless and logout are recognized prompt types in Auth0's documentation.

Expectation

The custom prompt text should be applied and posted.

Reproduction

Running a terraform plan with the given resource:

resource "auth0_prompt_custom_text" "example" {
  prompt   = "login-passwordless"
  language = "en"
  body = jsonencode(
    {
      "login-passwordless-email-code" : {
        "pageTitle" : "Log in"
      }
    }
  )
}

Produces the following error:

Error: expected prompt to be one of [login login-id login-password login-email-verification signup signup-id signup-password reset-password consent mfa-push mfa-otp mfa-voice mfa-phone mfa-webauthn mfa-sms mfa-email mfa-recovery-code mfa status device-flow email-verification email-otp-challenge organizations invitation common], got login-passwordless
│ 
│   with auth0_prompt_custom_text.example,
│   on example.tf line 2, in resource "auth0_prompt_custom_text" "example":
│  2:   prompt   = "login-passwordless"

This same issue appears with the logout prompt type.

Auth0 Terraform Provider version

0.43.0

Terraform version

1.3.6

@Gipphe Gipphe changed the title Mis Missing prompt types from auth0_prompt_custom_text resource Feb 17, 2023
@sergiught
Copy link
Contributor

Hey @Gipphe 👋🏻

Thanks for bringing this to us. We added the missing prompt types in the latest release: https://registry.terraform.io/providers/auth0/auth0/0.44.0/docs/resources/prompt_custom_text#required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants