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

DXCDT-244: Escape dollar sign references in prompts docs #366

Merged
merged 8 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/resources/prompt_custom_text.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ resource "auth0_prompt_custom_text" "example" {
"description" : "Login to",
"editEmailText" : "Edit",
"emailPlaceholder" : "Email address",
"federatedConnectionButtonText" : "Continue with ${connectionName}",
"federatedConnectionButtonText" : "Continue with $${connectionName}",
"footerLinkText" : "Sign up",
"footerText" : "Don't have an account?",
"forgotPasswordText" : "Forgot password?",
"invitationDescription" : "Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.",
"invitationDescription" : "Log in to accept $${inviterName}'s invitation to join $${companyName} on $${clientName}.",
"invitationTitle" : "You've Been Invited!",
"logoAltText" : "${companyName}",
"pageTitle" : "Log in | ${clientName}",
"logoAltText" : "$${companyName}",
"pageTitle" : "Log in | $${clientName}",
"passwordPlaceholder" : "Password",
"separatorText" : "Or",
"signupActionLinkText" : "${footerLinkText}",
"signupActionText" : "${footerText}",
"signupActionLinkText" : "$${footerLinkText}",
"signupActionText" : "$${footerText}",
"title" : "Welcome",
"usernamePlaceholder" : "Username or email address"
}
Expand Down
12 changes: 6 additions & 6 deletions examples/resources/auth0_prompt_custom_text/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ resource "auth0_prompt_custom_text" "example" {
"description" : "Login to",
"editEmailText" : "Edit",
"emailPlaceholder" : "Email address",
"federatedConnectionButtonText" : "Continue with ${connectionName}",
"federatedConnectionButtonText" : "Continue with $${connectionName}",
"footerLinkText" : "Sign up",
"footerText" : "Don't have an account?",
"forgotPasswordText" : "Forgot password?",
"invitationDescription" : "Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.",
"invitationDescription" : "Log in to accept $${inviterName}'s invitation to join $${companyName} on $${clientName}.",
"invitationTitle" : "You've Been Invited!",
"logoAltText" : "${companyName}",
"pageTitle" : "Log in | ${clientName}",
"logoAltText" : "$${companyName}",
"pageTitle" : "Log in | $${clientName}",
"passwordPlaceholder" : "Password",
"separatorText" : "Or",
"signupActionLinkText" : "${footerLinkText}",
"signupActionText" : "${footerText}",
"signupActionLinkText" : "$${footerLinkText}",
"signupActionText" : "$${footerText}",
"title" : "Welcome",
"usernamePlaceholder" : "Username or email address"
}
Expand Down
18 changes: 10 additions & 8 deletions internal/provider/resource_auth0_prompt_custom_text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestAccPromptCustomText(t *testing.T) {
resource.TestCheckResourceAttr(
"auth0_prompt_custom_text.prompt_custom_text",
"body",
"{\n \"login\": {\n \"alertListTitle\": \"Alerts\",\n \"buttonText\": \"Continue\",\n \"emailPlaceholder\": \"Email address\"\n }\n}",
"{\n \"login\": {\n \"alertListTitle\": \"Alerts\",\n \"buttonText\": \"Continue\",\n \"emailPlaceholder\": \"Email address\",\n \"title\": \"Welcome to ${companyName}\"\n }\n}",
),
),
},
Expand All @@ -34,7 +34,7 @@ func TestAccPromptCustomText(t *testing.T) {
resource.TestCheckResourceAttr(
"auth0_prompt_custom_text.prompt_custom_text",
"body",
"{\n \"login\": {\n \"alertListTitle\": \"Alerts\",\n \"buttonText\": \"Proceed\",\n \"emailPlaceholder\": \"Email Address\"\n }\n}",
"{\n \"login\": {\n \"alertListTitle\": \"Alerts\",\n \"buttonText\": \"Proceed\",\n \"emailPlaceholder\": \"Email Address\",\n \"title\": \"Welcome to ${companyName}\"\n }\n}",
),
),
},
Expand All @@ -49,9 +49,10 @@ resource "auth0_prompt_custom_text" "prompt_custom_text" {
body = jsonencode(
{
"login" : {
"alertListTitle" : "Alerts",
"buttonText" : "Continue",
"emailPlaceholder" : "Email address"
"alertListTitle" : "Alerts",
"buttonText" : "Continue",
"emailPlaceholder" : "Email address",
"title" : "Welcome to $${companyName}"
}
}
)
Expand All @@ -65,9 +66,10 @@ resource "auth0_prompt_custom_text" "prompt_custom_text" {
body = jsonencode(
{
"login" : {
"alertListTitle" : "Alerts",
"buttonText" : "Proceed",
"emailPlaceholder" : "Email Address"
"alertListTitle" : "Alerts",
"buttonText" : "Proceed",
"emailPlaceholder" : "Email Address",
"title" : "Welcome to $${companyName}"
}
}
)
Expand Down
Loading