With this resource you can manage custom HTML for the Login, Reset Password, Multi-Factor Authentication and Error pages.
resource "auth0_pages" "my_pages" {
login {
enabled = true
html = "<html><body>My Custom Login Page</body></html>"
}
change_password {
enabled = true
html = "<html><body>My Custom Reset Password Page</body></html>"
}
guardian_mfa {
enabled = true
html = "<html><body>My Custom MFA Page</body></html>"
}
error {
show_log_link = true
html = "<html><body>My Custom Error Page</body></html>"
url = "https://example.com"
}
}
change_password
(Block List, Max: 1) Configuration settings for customizing the Password Reset page. (see below for nested schema)error
(Block List, Max: 1) Configuration settings for the Error pages. (see below for nested schema)guardian_mfa
(Block List, Max: 1) Configuration settings for customizing the Guardian Multi-Factor Authentication page. (see below for nested schema)login
(Block List, Max: 1) Configuration settings for customizing the Login page. (see below for nested schema)id
(String) The ID of this resource.change_password
Required:
enabled
(Boolean) Indicates whether to use the custom Reset Password HTML (true
) or the default Auth0 page (false
).html
(String) Customized content for the Reset Password page. HTML format with supported Liquid syntax.error
Required:
show_log_link
(Boolean) Indicates whether to show the link to logs as part of the default error page.Optional:
html
(String) Customized content for the Error page. HTML format with supported Liquid syntax.url
(String) URL to redirect to when an error occurs, instead of showing the default error page.guardian_mfa
Required:
enabled
(Boolean) Indicates whether to use the custom Guardian MFA HTML (true
) or the default Auth0 page (false
).html
(String) Customized content for the Guardian MFA page. HTML format with supported Liquid syntax.login
Required:
enabled
(Boolean) Indicates whether to use the custom Login page HTML (true
) or the default Auth0 page (false
).html
(String) Customized content for the Login page. HTML format with supported Liquid syntax.Import is supported using the following syntax:
# As this is not a resource identifiable by an ID within the Auth0 Management API,
# pages can be imported using a random string.
#
# We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4)
#
# Example:
terraform import auth0_pages.my_pages "22f4f21b-017a-319d-92e7-2291c1ca36c4"