auth0.Pages
Explore with Pulumi AI
With this resource you can manage custom HTML for the Login, Reset Password, Multi-Factor Authentication and Error pages.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
const myPages = new auth0.Pages("my_pages", {
login: {
enabled: true,
html: "<html><body>My Custom Login Page</body></html>",
},
changePassword: {
enabled: true,
html: "<html><body>My Custom Reset Password Page</body></html>",
},
guardianMfa: {
enabled: true,
html: "<html><body>My Custom MFA Page</body></html>",
},
error: {
showLogLink: true,
html: "<html><body>My Custom Error Page</body></html>",
url: "https://example.com",
},
});
import pulumi
import pulumi_auth0 as auth0
my_pages = 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",
})
package main
import (
"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auth0.NewPages(ctx, "my_pages", &auth0.PagesArgs{
Login: &auth0.PagesLoginArgs{
Enabled: pulumi.Bool(true),
Html: pulumi.String("<html><body>My Custom Login Page</body></html>"),
},
ChangePassword: &auth0.PagesChangePasswordArgs{
Enabled: pulumi.Bool(true),
Html: pulumi.String("<html><body>My Custom Reset Password Page</body></html>"),
},
GuardianMfa: &auth0.PagesGuardianMfaArgs{
Enabled: pulumi.Bool(true),
Html: pulumi.String("<html><body>My Custom MFA Page</body></html>"),
},
Error: &auth0.PagesErrorArgs{
ShowLogLink: pulumi.Bool(true),
Html: pulumi.String("<html><body>My Custom Error Page</body></html>"),
Url: pulumi.String("https://example.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;
return await Deployment.RunAsync(() =>
{
var myPages = new Auth0.Pages("my_pages", new()
{
Login = new Auth0.Inputs.PagesLoginArgs
{
Enabled = true,
Html = "<html><body>My Custom Login Page</body></html>",
},
ChangePassword = new Auth0.Inputs.PagesChangePasswordArgs
{
Enabled = true,
Html = "<html><body>My Custom Reset Password Page</body></html>",
},
GuardianMfa = new Auth0.Inputs.PagesGuardianMfaArgs
{
Enabled = true,
Html = "<html><body>My Custom MFA Page</body></html>",
},
Error = new Auth0.Inputs.PagesErrorArgs
{
ShowLogLink = true,
Html = "<html><body>My Custom Error Page</body></html>",
Url = "https://example.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.Pages;
import com.pulumi.auth0.PagesArgs;
import com.pulumi.auth0.inputs.PagesLoginArgs;
import com.pulumi.auth0.inputs.PagesChangePasswordArgs;
import com.pulumi.auth0.inputs.PagesGuardianMfaArgs;
import com.pulumi.auth0.inputs.PagesErrorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myPages = new Pages("myPages", PagesArgs.builder()
.login(PagesLoginArgs.builder()
.enabled(true)
.html("<html><body>My Custom Login Page</body></html>")
.build())
.changePassword(PagesChangePasswordArgs.builder()
.enabled(true)
.html("<html><body>My Custom Reset Password Page</body></html>")
.build())
.guardianMfa(PagesGuardianMfaArgs.builder()
.enabled(true)
.html("<html><body>My Custom MFA Page</body></html>")
.build())
.error(PagesErrorArgs.builder()
.showLogLink(true)
.html("<html><body>My Custom Error Page</body></html>")
.url("https://example.com")
.build())
.build());
}
}
resources:
myPages:
type: auth0:Pages
name: my_pages
properties:
login:
enabled: true
html: <html><body>My Custom Login Page</body></html>
changePassword:
enabled: true
html: <html><body>My Custom Reset Password Page</body></html>
guardianMfa:
enabled: true
html: <html><body>My Custom MFA Page</body></html>
error:
showLogLink: true
html: <html><body>My Custom Error Page</body></html>
url: https://example.com
Create Pages Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Pages(name: string, args?: PagesArgs, opts?: CustomResourceOptions);
@overload
def Pages(resource_name: str,
args: Optional[PagesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Pages(resource_name: str,
opts: Optional[ResourceOptions] = None,
change_password: Optional[PagesChangePasswordArgs] = None,
error: Optional[PagesErrorArgs] = None,
guardian_mfa: Optional[PagesGuardianMfaArgs] = None,
login: Optional[PagesLoginArgs] = None)
func NewPages(ctx *Context, name string, args *PagesArgs, opts ...ResourceOption) (*Pages, error)
public Pages(string name, PagesArgs? args = null, CustomResourceOptions? opts = null)
type: auth0:Pages
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PagesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PagesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PagesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PagesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PagesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var pagesResource = new Auth0.Pages("pagesResource", new()
{
ChangePassword = new Auth0.Inputs.PagesChangePasswordArgs
{
Enabled = false,
Html = "string",
},
Error = new Auth0.Inputs.PagesErrorArgs
{
ShowLogLink = false,
Html = "string",
Url = "string",
},
GuardianMfa = new Auth0.Inputs.PagesGuardianMfaArgs
{
Enabled = false,
Html = "string",
},
Login = new Auth0.Inputs.PagesLoginArgs
{
Enabled = false,
Html = "string",
},
});
example, err := auth0.NewPages(ctx, "pagesResource", &auth0.PagesArgs{
ChangePassword: &auth0.PagesChangePasswordArgs{
Enabled: pulumi.Bool(false),
Html: pulumi.String("string"),
},
Error: &auth0.PagesErrorArgs{
ShowLogLink: pulumi.Bool(false),
Html: pulumi.String("string"),
Url: pulumi.String("string"),
},
GuardianMfa: &auth0.PagesGuardianMfaArgs{
Enabled: pulumi.Bool(false),
Html: pulumi.String("string"),
},
Login: &auth0.PagesLoginArgs{
Enabled: pulumi.Bool(false),
Html: pulumi.String("string"),
},
})
var pagesResource = new Pages("pagesResource", PagesArgs.builder()
.changePassword(PagesChangePasswordArgs.builder()
.enabled(false)
.html("string")
.build())
.error(PagesErrorArgs.builder()
.showLogLink(false)
.html("string")
.url("string")
.build())
.guardianMfa(PagesGuardianMfaArgs.builder()
.enabled(false)
.html("string")
.build())
.login(PagesLoginArgs.builder()
.enabled(false)
.html("string")
.build())
.build());
pages_resource = auth0.Pages("pagesResource",
change_password={
"enabled": False,
"html": "string",
},
error={
"show_log_link": False,
"html": "string",
"url": "string",
},
guardian_mfa={
"enabled": False,
"html": "string",
},
login={
"enabled": False,
"html": "string",
})
const pagesResource = new auth0.Pages("pagesResource", {
changePassword: {
enabled: false,
html: "string",
},
error: {
showLogLink: false,
html: "string",
url: "string",
},
guardianMfa: {
enabled: false,
html: "string",
},
login: {
enabled: false,
html: "string",
},
});
type: auth0:Pages
properties:
changePassword:
enabled: false
html: string
error:
html: string
showLogLink: false
url: string
guardianMfa:
enabled: false
html: string
login:
enabled: false
html: string
Pages Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Pages resource accepts the following input properties:
- Change
Password PagesChange Password - Configuration settings for customizing the Password Reset page.
- Error
Pages
Error - Configuration settings for the Error pages.
- Guardian
Mfa PagesGuardian Mfa - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- Login
Pages
Login - Configuration settings for customizing the Login page.
- Change
Password PagesChange Password Args - Configuration settings for customizing the Password Reset page.
- Error
Pages
Error Args - Configuration settings for the Error pages.
- Guardian
Mfa PagesGuardian Mfa Args - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- Login
Pages
Login Args - Configuration settings for customizing the Login page.
- change
Password PagesChange Password - Configuration settings for customizing the Password Reset page.
- error
Pages
Error - Configuration settings for the Error pages.
- guardian
Mfa PagesGuardian Mfa - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login
Pages
Login - Configuration settings for customizing the Login page.
- change
Password PagesChange Password - Configuration settings for customizing the Password Reset page.
- error
Pages
Error - Configuration settings for the Error pages.
- guardian
Mfa PagesGuardian Mfa - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login
Pages
Login - Configuration settings for customizing the Login page.
- change_
password PagesChange Password Args - Configuration settings for customizing the Password Reset page.
- error
Pages
Error Args - Configuration settings for the Error pages.
- guardian_
mfa PagesGuardian Mfa Args - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login
Pages
Login Args - Configuration settings for customizing the Login page.
- change
Password Property Map - Configuration settings for customizing the Password Reset page.
- error Property Map
- Configuration settings for the Error pages.
- guardian
Mfa Property Map - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login Property Map
- Configuration settings for customizing the Login page.
Outputs
All input properties are implicitly available as output properties. Additionally, the Pages resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Pages Resource
Get an existing Pages resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PagesState, opts?: CustomResourceOptions): Pages
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
change_password: Optional[PagesChangePasswordArgs] = None,
error: Optional[PagesErrorArgs] = None,
guardian_mfa: Optional[PagesGuardianMfaArgs] = None,
login: Optional[PagesLoginArgs] = None) -> Pages
func GetPages(ctx *Context, name string, id IDInput, state *PagesState, opts ...ResourceOption) (*Pages, error)
public static Pages Get(string name, Input<string> id, PagesState? state, CustomResourceOptions? opts = null)
public static Pages get(String name, Output<String> id, PagesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Change
Password PagesChange Password - Configuration settings for customizing the Password Reset page.
- Error
Pages
Error - Configuration settings for the Error pages.
- Guardian
Mfa PagesGuardian Mfa - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- Login
Pages
Login - Configuration settings for customizing the Login page.
- Change
Password PagesChange Password Args - Configuration settings for customizing the Password Reset page.
- Error
Pages
Error Args - Configuration settings for the Error pages.
- Guardian
Mfa PagesGuardian Mfa Args - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- Login
Pages
Login Args - Configuration settings for customizing the Login page.
- change
Password PagesChange Password - Configuration settings for customizing the Password Reset page.
- error
Pages
Error - Configuration settings for the Error pages.
- guardian
Mfa PagesGuardian Mfa - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login
Pages
Login - Configuration settings for customizing the Login page.
- change
Password PagesChange Password - Configuration settings for customizing the Password Reset page.
- error
Pages
Error - Configuration settings for the Error pages.
- guardian
Mfa PagesGuardian Mfa - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login
Pages
Login - Configuration settings for customizing the Login page.
- change_
password PagesChange Password Args - Configuration settings for customizing the Password Reset page.
- error
Pages
Error Args - Configuration settings for the Error pages.
- guardian_
mfa PagesGuardian Mfa Args - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login
Pages
Login Args - Configuration settings for customizing the Login page.
- change
Password Property Map - Configuration settings for customizing the Password Reset page.
- error Property Map
- Configuration settings for the Error pages.
- guardian
Mfa Property Map - Configuration settings for customizing the Guardian Multi-Factor Authentication page.
- login Property Map
- Configuration settings for customizing the Login page.
Supporting Types
PagesChangePassword, PagesChangePasswordArgs
- Enabled bool
- 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.
- Enabled bool
- 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.
- 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.
- 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.
- enabled bool
- Indicates whether to use the custom Reset Password HTML (
true
) or the default Auth0 page (false
). - html str
- Customized content for the Reset Password page. HTML format with supported Liquid syntax.
- 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.
PagesError, PagesErrorArgs
- Show
Log boolLink - Indicates whether to show the link to logs as part of the default error page.
- 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.
- Show
Log boolLink - Indicates whether to show the link to logs as part of the default error page.
- 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.
- show
Log BooleanLink - Indicates whether to show the link to logs as part of the default error page.
- 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.
- show
Log booleanLink - Indicates whether to show the link to logs as part of the default error page.
- 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.
- show_
log_ boollink - Indicates whether to show the link to logs as part of the default error page.
- html str
- Customized content for the Error page. HTML format with supported Liquid syntax.
- url str
- URL to redirect to when an error occurs, instead of showing the default error page.
- show
Log BooleanLink - Indicates whether to show the link to logs as part of the default error page.
- 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.
PagesGuardianMfa, PagesGuardianMfaArgs
- Enabled bool
- 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.
- Enabled bool
- 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.
- 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.
- 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.
- enabled bool
- Indicates whether to use the custom Guardian MFA HTML (
true
) or the default Auth0 page (false
). - html str
- Customized content for the Guardian MFA page. HTML format with supported Liquid syntax.
- 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.
PagesLogin, PagesLoginArgs
- Enabled bool
- 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.
- Enabled bool
- 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.
- 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.
- 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.
- enabled bool
- Indicates whether to use the custom Login page HTML (
true
) or the default Auth0 page (false
). - html str
- Customized content for the Login page. HTML format with supported Liquid syntax.
- 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
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
Example:
$ pulumi import auth0:index/pages:Pages my_pages "22f4f21b-017a-319d-92e7-2291c1ca36c4"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Auth0 pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
auth0
Terraform Provider.