auth0.PromptScreenPartial
Explore with Pulumi AI
With this resource, you can manage a customized sign up and login experience by adding custom content, form elements and css/javascript. You can read more about this here.
!> This resource appends a specific prompt screen to the list of prompt screens displayed to the user during the authentication flow.
In contrast, the auth0.PromptScreenPartials
resource manages the complete set of prompt screens that are displayed during the
authentication flow. To avoid potential issues, it is recommended not to use this resource in conjunction with the
auth0.PromptScreenPartials
resource when managing prompt screens for the same prompt.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
const login = new auth0.PromptScreenPartial("login", {
promptType: "login",
screenName: "login",
insertionPoints: {
formContentStart: "<div>Form Content Start</div>",
formContentEnd: "<div>Form Content End</div>",
},
});
import pulumi
import pulumi_auth0 as auth0
login = auth0.PromptScreenPartial("login",
prompt_type="login",
screen_name="login",
insertion_points={
"form_content_start": "<div>Form Content Start</div>",
"form_content_end": "<div>Form Content End</div>",
})
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.NewPromptScreenPartial(ctx, "login", &auth0.PromptScreenPartialArgs{
PromptType: pulumi.String("login"),
ScreenName: pulumi.String("login"),
InsertionPoints: &auth0.PromptScreenPartialInsertionPointsArgs{
FormContentStart: pulumi.String("<div>Form Content Start</div>"),
FormContentEnd: pulumi.String("<div>Form Content End</div>"),
},
})
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 login = new Auth0.PromptScreenPartial("login", new()
{
PromptType = "login",
ScreenName = "login",
InsertionPoints = new Auth0.Inputs.PromptScreenPartialInsertionPointsArgs
{
FormContentStart = "<div>Form Content Start</div>",
FormContentEnd = "<div>Form Content End</div>",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.PromptScreenPartial;
import com.pulumi.auth0.PromptScreenPartialArgs;
import com.pulumi.auth0.inputs.PromptScreenPartialInsertionPointsArgs;
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 login = new PromptScreenPartial("login", PromptScreenPartialArgs.builder()
.promptType("login")
.screenName("login")
.insertionPoints(PromptScreenPartialInsertionPointsArgs.builder()
.formContentStart("<div>Form Content Start</div>")
.formContentEnd("<div>Form Content End</div>")
.build())
.build());
}
}
resources:
login:
type: auth0:PromptScreenPartial
properties:
promptType: login
screenName: login
insertionPoints:
formContentStart: <div>Form Content Start</div>
formContentEnd: <div>Form Content End</div>
Create PromptScreenPartial Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PromptScreenPartial(name: string, args: PromptScreenPartialArgs, opts?: CustomResourceOptions);
@overload
def PromptScreenPartial(resource_name: str,
args: PromptScreenPartialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PromptScreenPartial(resource_name: str,
opts: Optional[ResourceOptions] = None,
prompt_type: Optional[str] = None,
screen_name: Optional[str] = None,
insertion_points: Optional[PromptScreenPartialInsertionPointsArgs] = None)
func NewPromptScreenPartial(ctx *Context, name string, args PromptScreenPartialArgs, opts ...ResourceOption) (*PromptScreenPartial, error)
public PromptScreenPartial(string name, PromptScreenPartialArgs args, CustomResourceOptions? opts = null)
public PromptScreenPartial(String name, PromptScreenPartialArgs args)
public PromptScreenPartial(String name, PromptScreenPartialArgs args, CustomResourceOptions options)
type: auth0:PromptScreenPartial
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 PromptScreenPartialArgs
- 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 PromptScreenPartialArgs
- 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 PromptScreenPartialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PromptScreenPartialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PromptScreenPartialArgs
- 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 promptScreenPartialResource = new Auth0.PromptScreenPartial("promptScreenPartialResource", new()
{
PromptType = "string",
ScreenName = "string",
InsertionPoints = new Auth0.Inputs.PromptScreenPartialInsertionPointsArgs
{
FormContentEnd = "string",
FormContentStart = "string",
FormFooterEnd = "string",
FormFooterStart = "string",
SecondaryActionsEnd = "string",
SecondaryActionsStart = "string",
},
});
example, err := auth0.NewPromptScreenPartial(ctx, "promptScreenPartialResource", &auth0.PromptScreenPartialArgs{
PromptType: pulumi.String("string"),
ScreenName: pulumi.String("string"),
InsertionPoints: &auth0.PromptScreenPartialInsertionPointsArgs{
FormContentEnd: pulumi.String("string"),
FormContentStart: pulumi.String("string"),
FormFooterEnd: pulumi.String("string"),
FormFooterStart: pulumi.String("string"),
SecondaryActionsEnd: pulumi.String("string"),
SecondaryActionsStart: pulumi.String("string"),
},
})
var promptScreenPartialResource = new PromptScreenPartial("promptScreenPartialResource", PromptScreenPartialArgs.builder()
.promptType("string")
.screenName("string")
.insertionPoints(PromptScreenPartialInsertionPointsArgs.builder()
.formContentEnd("string")
.formContentStart("string")
.formFooterEnd("string")
.formFooterStart("string")
.secondaryActionsEnd("string")
.secondaryActionsStart("string")
.build())
.build());
prompt_screen_partial_resource = auth0.PromptScreenPartial("promptScreenPartialResource",
prompt_type="string",
screen_name="string",
insertion_points=auth0.PromptScreenPartialInsertionPointsArgs(
form_content_end="string",
form_content_start="string",
form_footer_end="string",
form_footer_start="string",
secondary_actions_end="string",
secondary_actions_start="string",
))
const promptScreenPartialResource = new auth0.PromptScreenPartial("promptScreenPartialResource", {
promptType: "string",
screenName: "string",
insertionPoints: {
formContentEnd: "string",
formContentStart: "string",
formFooterEnd: "string",
formFooterStart: "string",
secondaryActionsEnd: "string",
secondaryActionsStart: "string",
},
});
type: auth0:PromptScreenPartial
properties:
insertionPoints:
formContentEnd: string
formContentStart: string
formFooterEnd: string
formFooterStart: string
secondaryActionsEnd: string
secondaryActionsStart: string
promptType: string
screenName: string
PromptScreenPartial Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PromptScreenPartial resource accepts the following input properties:
- Prompt
Type string - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - Screen
Name string - The name of the screen associated with the partials
- Insertion
Points PromptScreen Partial Insertion Points - The insertion points for the partials.
- Prompt
Type string - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - Screen
Name string - The name of the screen associated with the partials
- Insertion
Points PromptScreen Partial Insertion Points Args - The insertion points for the partials.
- prompt
Type String - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen
Name String - The name of the screen associated with the partials
- insertion
Points PromptScreen Partial Insertion Points - The insertion points for the partials.
- prompt
Type string - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen
Name string - The name of the screen associated with the partials
- insertion
Points PromptScreen Partial Insertion Points - The insertion points for the partials.
- prompt_
type str - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen_
name str - The name of the screen associated with the partials
- insertion_
points PromptScreen Partial Insertion Points Args - The insertion points for the partials.
- prompt
Type String - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen
Name String - The name of the screen associated with the partials
- insertion
Points Property Map - The insertion points for the partials.
Outputs
All input properties are implicitly available as output properties. Additionally, the PromptScreenPartial 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 PromptScreenPartial Resource
Get an existing PromptScreenPartial 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?: PromptScreenPartialState, opts?: CustomResourceOptions): PromptScreenPartial
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
insertion_points: Optional[PromptScreenPartialInsertionPointsArgs] = None,
prompt_type: Optional[str] = None,
screen_name: Optional[str] = None) -> PromptScreenPartial
func GetPromptScreenPartial(ctx *Context, name string, id IDInput, state *PromptScreenPartialState, opts ...ResourceOption) (*PromptScreenPartial, error)
public static PromptScreenPartial Get(string name, Input<string> id, PromptScreenPartialState? state, CustomResourceOptions? opts = null)
public static PromptScreenPartial get(String name, Output<String> id, PromptScreenPartialState 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.
- Insertion
Points PromptScreen Partial Insertion Points - The insertion points for the partials.
- Prompt
Type string - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - Screen
Name string - The name of the screen associated with the partials
- Insertion
Points PromptScreen Partial Insertion Points Args - The insertion points for the partials.
- Prompt
Type string - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - Screen
Name string - The name of the screen associated with the partials
- insertion
Points PromptScreen Partial Insertion Points - The insertion points for the partials.
- prompt
Type String - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen
Name String - The name of the screen associated with the partials
- insertion
Points PromptScreen Partial Insertion Points - The insertion points for the partials.
- prompt
Type string - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen
Name string - The name of the screen associated with the partials
- insertion_
points PromptScreen Partial Insertion Points Args - The insertion points for the partials.
- prompt_
type str - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen_
name str - The name of the screen associated with the partials
- insertion
Points Property Map - The insertion points for the partials.
- prompt
Type String - The prompt that you are adding partials for. Options are:
login-id
,login
,login-password
,signup
,signup-id
,signup-password
,login-passwordless
. - screen
Name String - The name of the screen associated with the partials
Supporting Types
PromptScreenPartialInsertionPoints, PromptScreenPartialInsertionPointsArgs
- Form
Content stringEnd - Content that goes at the end of the form.
- Form
Content stringStart - Content that goes at the start of the form.
- string
- Footer content for the end of the footer.
- string
- Footer content for the start of the footer.
- Secondary
Actions stringEnd - Actions that go at the end of secondary actions.
- Secondary
Actions stringStart - Actions that go at the start of secondary actions.
- Form
Content stringEnd - Content that goes at the end of the form.
- Form
Content stringStart - Content that goes at the start of the form.
- string
- Footer content for the end of the footer.
- string
- Footer content for the start of the footer.
- Secondary
Actions stringEnd - Actions that go at the end of secondary actions.
- Secondary
Actions stringStart - Actions that go at the start of secondary actions.
- form
Content StringEnd - Content that goes at the end of the form.
- form
Content StringStart - Content that goes at the start of the form.
- String
- Footer content for the end of the footer.
- String
- Footer content for the start of the footer.
- secondary
Actions StringEnd - Actions that go at the end of secondary actions.
- secondary
Actions StringStart - Actions that go at the start of secondary actions.
- form
Content stringEnd - Content that goes at the end of the form.
- form
Content stringStart - Content that goes at the start of the form.
- string
- Footer content for the end of the footer.
- string
- Footer content for the start of the footer.
- secondary
Actions stringEnd - Actions that go at the end of secondary actions.
- secondary
Actions stringStart - Actions that go at the start of secondary actions.
- form_
content_ strend - Content that goes at the end of the form.
- form_
content_ strstart - Content that goes at the start of the form.
- str
- Footer content for the end of the footer.
- str
- Footer content for the start of the footer.
- secondary_
actions_ strend - Actions that go at the end of secondary actions.
- secondary_
actions_ strstart - Actions that go at the start of secondary actions.
- form
Content StringEnd - Content that goes at the end of the form.
- form
Content StringStart - Content that goes at the start of the form.
- String
- Footer content for the end of the footer.
- String
- Footer content for the start of the footer.
- secondary
Actions StringEnd - Actions that go at the end of secondary actions.
- secondary
Actions StringStart - Actions that go at the start of secondary actions.
Import
This resource can be imported using the prompt name and screen_name.
As this is not a resource identifiable by an ID within the Auth0 Management API,
login can be imported using the prompt name and screen name using the format:
prompt_name:screen_name
Example:
$ pulumi import auth0:index/promptScreenPartial:PromptScreenPartial login "login:login"
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.