1. Packages
  2. Auth0 Provider
  3. API Docs
  4. PromptScreenPartial
Auth0 v3.7.1 published on Thursday, Sep 12, 2024 by Pulumi

auth0.PromptScreenPartial

Explore with Pulumi AI

auth0 logo
Auth0 v3.7.1 published on Thursday, Sep 12, 2024 by Pulumi

    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:

    PromptType string
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    ScreenName string
    The name of the screen associated with the partials
    InsertionPoints PromptScreenPartialInsertionPoints
    The insertion points for the partials.
    PromptType string
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    ScreenName string
    The name of the screen associated with the partials
    InsertionPoints PromptScreenPartialInsertionPointsArgs
    The insertion points for the partials.
    promptType String
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    screenName String
    The name of the screen associated with the partials
    insertionPoints PromptScreenPartialInsertionPoints
    The insertion points for the partials.
    promptType string
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    screenName string
    The name of the screen associated with the partials
    insertionPoints PromptScreenPartialInsertionPoints
    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 PromptScreenPartialInsertionPointsArgs
    The insertion points for the partials.
    promptType String
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    screenName String
    The name of the screen associated with the partials
    insertionPoints 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.
    The following state arguments are supported:
    InsertionPoints PromptScreenPartialInsertionPoints
    The insertion points for the partials.
    PromptType string
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    ScreenName string
    The name of the screen associated with the partials
    InsertionPoints PromptScreenPartialInsertionPointsArgs
    The insertion points for the partials.
    PromptType string
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    ScreenName string
    The name of the screen associated with the partials
    insertionPoints PromptScreenPartialInsertionPoints
    The insertion points for the partials.
    promptType String
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    screenName String
    The name of the screen associated with the partials
    insertionPoints PromptScreenPartialInsertionPoints
    The insertion points for the partials.
    promptType string
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    screenName string
    The name of the screen associated with the partials
    insertion_points PromptScreenPartialInsertionPointsArgs
    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
    insertionPoints Property Map
    The insertion points for the partials.
    promptType String
    The prompt that you are adding partials for. Options are: login-id, login, login-password, signup, signup-id, signup-password, login-passwordless.
    screenName String
    The name of the screen associated with the partials

    Supporting Types

    PromptScreenPartialInsertionPoints, PromptScreenPartialInsertionPointsArgs

    FormContentEnd string
    Content that goes at the end of the form.
    FormContentStart string
    Content that goes at the start of the form.
    FormFooterEnd string
    Footer content for the end of the footer.
    FormFooterStart string
    Footer content for the start of the footer.
    SecondaryActionsEnd string
    Actions that go at the end of secondary actions.
    SecondaryActionsStart string
    Actions that go at the start of secondary actions.
    FormContentEnd string
    Content that goes at the end of the form.
    FormContentStart string
    Content that goes at the start of the form.
    FormFooterEnd string
    Footer content for the end of the footer.
    FormFooterStart string
    Footer content for the start of the footer.
    SecondaryActionsEnd string
    Actions that go at the end of secondary actions.
    SecondaryActionsStart string
    Actions that go at the start of secondary actions.
    formContentEnd String
    Content that goes at the end of the form.
    formContentStart String
    Content that goes at the start of the form.
    formFooterEnd String
    Footer content for the end of the footer.
    formFooterStart String
    Footer content for the start of the footer.
    secondaryActionsEnd String
    Actions that go at the end of secondary actions.
    secondaryActionsStart String
    Actions that go at the start of secondary actions.
    formContentEnd string
    Content that goes at the end of the form.
    formContentStart string
    Content that goes at the start of the form.
    formFooterEnd string
    Footer content for the end of the footer.
    formFooterStart string
    Footer content for the start of the footer.
    secondaryActionsEnd string
    Actions that go at the end of secondary actions.
    secondaryActionsStart string
    Actions that go at the start of secondary actions.
    form_content_end str
    Content that goes at the end of the form.
    form_content_start str
    Content that goes at the start of the form.
    form_footer_end str
    Footer content for the end of the footer.
    form_footer_start str
    Footer content for the start of the footer.
    secondary_actions_end str
    Actions that go at the end of secondary actions.
    secondary_actions_start str
    Actions that go at the start of secondary actions.
    formContentEnd String
    Content that goes at the end of the form.
    formContentStart String
    Content that goes at the start of the form.
    formFooterEnd String
    Footer content for the end of the footer.
    formFooterStart String
    Footer content for the start of the footer.
    secondaryActionsEnd String
    Actions that go at the end of secondary actions.
    secondaryActionsStart String
    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.
    auth0 logo
    Auth0 v3.7.1 published on Thursday, Sep 12, 2024 by Pulumi