From a51d8234c93849a01410e2a00475138634cc24f1 Mon Sep 17 00:00:00 2001 From: naari3 <naari.named@gmail.com> Date: Fri, 12 Jul 2024 17:56:09 +0900 Subject: [PATCH 1/2] Add new prompt values to auth0_prompt_custom_text resource --- docs/resources/prompt_custom_text.md | 2 +- internal/auth0/prompt/resource_custom_text.go | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/resources/prompt_custom_text.md b/docs/resources/prompt_custom_text.md index 4642e4c21..1b07858b4 100644 --- a/docs/resources/prompt_custom_text.md +++ b/docs/resources/prompt_custom_text.md @@ -49,7 +49,7 @@ resource "auth0_prompt_custom_text" "example" { - `body` (String) JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values). - `language` (String) Language of the custom text. Options include: `ar`, `bg`, `bs`, `ca-ES`, `cs`, `cy`, `da`, `de`, `el`, `en`, `es`, `et`, `eu-ES`, `fi`, `fr`, `fr-CA`, `fr-FR`, `gl-ES`, `he`, `hi`, `hr`, `hu`, `id`, `is`, `it`, `ja`, `ko`, `lt`, `lv`, `nb`, `nl`, `nn`, `no`, `pl`, `pt`, `pt-BR`, `pt-PT`, `ro`, `ru`, `sk`, `sl`, `sr`, `sv`, `th`, `tr`, `uk`, `vi`, `zh-CN`, `zh-TW`. -- `prompt` (String) The term `prompt` is used to refer to a specific step in the login flow. Options include: `common`, `consent`, `device-flow`, `email-otp-challenge`, `email-verification`, `invitation`, `login`, `login-id`, `login-password`, `login-passwordless`, `login-email-verification`, `logout`, `mfa`, `mfa-email`, `mfa-otp`, `mfa-phone`, `mfa-push`, `mfa-recovery-code`, `mfa-sms`, `mfa-voice`, `mfa-webauthn`, `organizations`, `reset-password`, `signup`, `signup-id`, `signup-password`, `status`. +- `prompt` (String) The term `prompt` is used to refer to a specific step in the login flow. Options include: `capcha`, `common`, `consent`, `custom-form`, `customized-consent`, `device-flow`, `email-otp-challenge`, `email-verification`, `invitation`, `login`, `login-id`, `login-password`, `login-passwordless`, `login-email-verification`, `logout`, `mfa`, `mfa-email`, `mfa-otp`, `mfa-phone`, `mfa-push`, `mfa-recovery-code`, `mfa-sms`, `mfa-voice`, `mfa-webauthn`, `organizations`, `passkeys`, `phone-identifier-challenge`, `phone-identifier-enrollment`, `reset-password`, `signup`, `signup-id`, `signup-password`, `status`. ### Read-Only diff --git a/internal/auth0/prompt/resource_custom_text.go b/internal/auth0/prompt/resource_custom_text.go index d390921ef..b5011526d 100644 --- a/internal/auth0/prompt/resource_custom_text.go +++ b/internal/auth0/prompt/resource_custom_text.go @@ -17,10 +17,11 @@ import ( var ( availablePrompts = []string{ - "common", "consent", "device-flow", "email-otp-challenge", "email-verification", "invitation", "login", - "login-id", "login-password", "login-passwordless", "login-email-verification", "logout", "mfa", "mfa-email", - "mfa-otp", "mfa-phone", "mfa-push", "mfa-recovery-code", "mfa-sms", "mfa-voice", "mfa-webauthn", - "organizations", "reset-password", "signup", "signup-id", "signup-password", "status", + "capcha", "common", "consent", "custom-form", "customized-consent", "device-flow", "email-otp-challenge", + "email-verification", "invitation", "login", "login-id", "login-password", "login-passwordless", + "login-email-verification", "logout", "mfa", "mfa-email", "mfa-otp", "mfa-phone", "mfa-push", "mfa-recovery-code", + "mfa-sms", "mfa-voice", "mfa-webauthn", "organizations", "passkeys", "phone-identifier-challenge", + "phone-identifier-enrollment", "reset-password", "signup", "signup-id", "signup-password", "status", } availableLanguages = []string{ "ar", "bg", "bs", "ca-ES", "cs", "cy", "da", "de", "el", "en", "es", "et", "eu-ES", "fi", "fr", "fr-CA", "fr-FR", "gl-ES", "he", "hi", "hr", From b8405546a341e0f197235a85103afb3a0b19d748 Mon Sep 17 00:00:00 2001 From: naari3 <naari.named@gmail.com> Date: Fri, 12 Jul 2024 18:44:51 +0900 Subject: [PATCH 2/2] Fix prompt value typo and Sort values Co-authored-by: KunalOfficial <35455566+developerkunal@users.noreply.github.com> --- docs/resources/prompt_custom_text.md | 2 +- internal/auth0/prompt/resource_custom_text.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/resources/prompt_custom_text.md b/docs/resources/prompt_custom_text.md index 1b07858b4..239938821 100644 --- a/docs/resources/prompt_custom_text.md +++ b/docs/resources/prompt_custom_text.md @@ -49,7 +49,7 @@ resource "auth0_prompt_custom_text" "example" { - `body` (String) JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values). - `language` (String) Language of the custom text. Options include: `ar`, `bg`, `bs`, `ca-ES`, `cs`, `cy`, `da`, `de`, `el`, `en`, `es`, `et`, `eu-ES`, `fi`, `fr`, `fr-CA`, `fr-FR`, `gl-ES`, `he`, `hi`, `hr`, `hu`, `id`, `is`, `it`, `ja`, `ko`, `lt`, `lv`, `nb`, `nl`, `nn`, `no`, `pl`, `pt`, `pt-BR`, `pt-PT`, `ro`, `ru`, `sk`, `sl`, `sr`, `sv`, `th`, `tr`, `uk`, `vi`, `zh-CN`, `zh-TW`. -- `prompt` (String) The term `prompt` is used to refer to a specific step in the login flow. Options include: `capcha`, `common`, `consent`, `custom-form`, `customized-consent`, `device-flow`, `email-otp-challenge`, `email-verification`, `invitation`, `login`, `login-id`, `login-password`, `login-passwordless`, `login-email-verification`, `logout`, `mfa`, `mfa-email`, `mfa-otp`, `mfa-phone`, `mfa-push`, `mfa-recovery-code`, `mfa-sms`, `mfa-voice`, `mfa-webauthn`, `organizations`, `passkeys`, `phone-identifier-challenge`, `phone-identifier-enrollment`, `reset-password`, `signup`, `signup-id`, `signup-password`, `status`. +- `prompt` (String) The term `prompt` is used to refer to a specific step in the login flow. Options include: `captcha`, `common`, `consent`, `custom-form`, `customized-consent`, `device-flow`, `email-otp-challenge`, `email-verification`, `invitation`, `login`, `login-email-verification`, `login-id`, `login-password`, `login-passwordless`, `logout`, `mfa`, `mfa-email`, `mfa-otp`, `mfa-phone`, `mfa-push`, `mfa-recovery-code`, `mfa-sms`, `mfa-voice`, `mfa-webauthn`, `organizations`, `passkeys`, `phone-identifier-challenge`, `phone-identifier-enrollment`, `reset-password`, `signup`, `signup-id`, `signup-password`, `status`. ### Read-Only diff --git a/internal/auth0/prompt/resource_custom_text.go b/internal/auth0/prompt/resource_custom_text.go index b5011526d..9054fd8a6 100644 --- a/internal/auth0/prompt/resource_custom_text.go +++ b/internal/auth0/prompt/resource_custom_text.go @@ -17,9 +17,9 @@ import ( var ( availablePrompts = []string{ - "capcha", "common", "consent", "custom-form", "customized-consent", "device-flow", "email-otp-challenge", - "email-verification", "invitation", "login", "login-id", "login-password", "login-passwordless", - "login-email-verification", "logout", "mfa", "mfa-email", "mfa-otp", "mfa-phone", "mfa-push", "mfa-recovery-code", + "captcha", "common", "consent", "custom-form", "customized-consent", "device-flow", "email-otp-challenge", + "email-verification", "invitation", "login", "login-email-verification", "login-id", "login-password", + "login-passwordless", "logout", "mfa", "mfa-email", "mfa-otp", "mfa-phone", "mfa-push", "mfa-recovery-code", "mfa-sms", "mfa-voice", "mfa-webauthn", "organizations", "passkeys", "phone-identifier-challenge", "phone-identifier-enrollment", "reset-password", "signup", "signup-id", "signup-password", "status", }