1. Packages
  2. Okta
  3. API Docs
  4. app
  5. BasicAuth
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

okta.app.BasicAuth

Explore with Pulumi AI

okta logo
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

    This resource allows you to create and configure a Basic Auth Application.

    During an apply if there is change in status the app will first be activated or deactivated in accordance with the status change. Then, all other arguments that changed will be applied.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Okta.App.BasicAuth("example", new()
        {
            AuthUrl = "https://example.com/auth.html",
            Label = "Example",
            Url = "https://example.com/login.html",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/app"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := app.NewBasicAuth(ctx, "example", &app.BasicAuthArgs{
    			AuthUrl: pulumi.String("https://example.com/auth.html"),
    			Label:   pulumi.String("Example"),
    			Url:     pulumi.String("https://example.com/login.html"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.app.BasicAuth;
    import com.pulumi.okta.app.BasicAuthArgs;
    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 example = new BasicAuth("example", BasicAuthArgs.builder()        
                .authUrl("https://example.com/auth.html")
                .label("Example")
                .url("https://example.com/login.html")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.app.BasicAuth("example",
        auth_url="https://example.com/auth.html",
        label="Example",
        url="https://example.com/login.html")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = new okta.app.BasicAuth("example", {
        authUrl: "https://example.com/auth.html",
        label: "Example",
        url: "https://example.com/login.html",
    });
    
    resources:
      example:
        type: okta:app:BasicAuth
        properties:
          authUrl: https://example.com/auth.html
          label: Example
          url: https://example.com/login.html
    

    Create BasicAuth Resource

    new BasicAuth(name: string, args: BasicAuthArgs, opts?: CustomResourceOptions);
    @overload
    def BasicAuth(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  accessibility_error_redirect_url: Optional[str] = None,
                  accessibility_login_redirect_url: Optional[str] = None,
                  accessibility_self_service: Optional[bool] = None,
                  admin_note: Optional[str] = None,
                  app_links_json: Optional[str] = None,
                  auth_url: Optional[str] = None,
                  auto_submit_toolbar: Optional[bool] = None,
                  enduser_note: Optional[str] = None,
                  hide_ios: Optional[bool] = None,
                  hide_web: Optional[bool] = None,
                  label: Optional[str] = None,
                  logo: Optional[str] = None,
                  status: Optional[str] = None,
                  url: Optional[str] = None)
    @overload
    def BasicAuth(resource_name: str,
                  args: BasicAuthArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewBasicAuth(ctx *Context, name string, args BasicAuthArgs, opts ...ResourceOption) (*BasicAuth, error)
    public BasicAuth(string name, BasicAuthArgs args, CustomResourceOptions? opts = null)
    public BasicAuth(String name, BasicAuthArgs args)
    public BasicAuth(String name, BasicAuthArgs args, CustomResourceOptions options)
    
    type: okta:app:BasicAuth
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args BasicAuthArgs
    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 BasicAuthArgs
    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 BasicAuthArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BasicAuthArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BasicAuthArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    BasicAuth 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 BasicAuth resource accepts the following input properties:

    AuthUrl string
    The URL of the authenticating site for this app.
    Label string
    The Application's display name.
    Url string
    The URL of the sign-in page for this app.
    AccessibilityErrorRedirectUrl string
    Custom error page URL.
    AccessibilityLoginRedirectUrl string
    Custom login page for this application.
    AccessibilitySelfService bool
    Enable self-service. By default, it is false.
    AdminNote string
    Application notes for admins.
    AppLinksJson string
    Displays specific appLinks for the app. The value for each application link should be boolean.
    AutoSubmitToolbar bool
    Display auto submit toolbar.
    EnduserNote string
    Application notes for end users.
    HideIos bool
    Do not display application icon on mobile app.
    HideWeb bool
    Do not display application icon to users.
    Logo string
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    Status string
    Status of application. ("ACTIVE" or "INACTIVE").
    AuthUrl string
    The URL of the authenticating site for this app.
    Label string
    The Application's display name.
    Url string
    The URL of the sign-in page for this app.
    AccessibilityErrorRedirectUrl string
    Custom error page URL.
    AccessibilityLoginRedirectUrl string
    Custom login page for this application.
    AccessibilitySelfService bool
    Enable self-service. By default, it is false.
    AdminNote string
    Application notes for admins.
    AppLinksJson string
    Displays specific appLinks for the app. The value for each application link should be boolean.
    AutoSubmitToolbar bool
    Display auto submit toolbar.
    EnduserNote string
    Application notes for end users.
    HideIos bool
    Do not display application icon on mobile app.
    HideWeb bool
    Do not display application icon to users.
    Logo string
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    Status string
    Status of application. ("ACTIVE" or "INACTIVE").
    authUrl String
    The URL of the authenticating site for this app.
    label String
    The Application's display name.
    url String
    The URL of the sign-in page for this app.
    accessibilityErrorRedirectUrl String
    Custom error page URL.
    accessibilityLoginRedirectUrl String
    Custom login page for this application.
    accessibilitySelfService Boolean
    Enable self-service. By default, it is false.
    adminNote String
    Application notes for admins.
    appLinksJson String
    Displays specific appLinks for the app. The value for each application link should be boolean.
    autoSubmitToolbar Boolean
    Display auto submit toolbar.
    enduserNote String
    Application notes for end users.
    hideIos Boolean
    Do not display application icon on mobile app.
    hideWeb Boolean
    Do not display application icon to users.
    logo String
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    status String
    Status of application. ("ACTIVE" or "INACTIVE").
    authUrl string
    The URL of the authenticating site for this app.
    label string
    The Application's display name.
    url string
    The URL of the sign-in page for this app.
    accessibilityErrorRedirectUrl string
    Custom error page URL.
    accessibilityLoginRedirectUrl string
    Custom login page for this application.
    accessibilitySelfService boolean
    Enable self-service. By default, it is false.
    adminNote string
    Application notes for admins.
    appLinksJson string
    Displays specific appLinks for the app. The value for each application link should be boolean.
    autoSubmitToolbar boolean
    Display auto submit toolbar.
    enduserNote string
    Application notes for end users.
    hideIos boolean
    Do not display application icon on mobile app.
    hideWeb boolean
    Do not display application icon to users.
    logo string
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    status string
    Status of application. ("ACTIVE" or "INACTIVE").
    auth_url str
    The URL of the authenticating site for this app.
    label str
    The Application's display name.
    url str
    The URL of the sign-in page for this app.
    accessibility_error_redirect_url str
    Custom error page URL.
    accessibility_login_redirect_url str
    Custom login page for this application.
    accessibility_self_service bool
    Enable self-service. By default, it is false.
    admin_note str
    Application notes for admins.
    app_links_json str
    Displays specific appLinks for the app. The value for each application link should be boolean.
    auto_submit_toolbar bool
    Display auto submit toolbar.
    enduser_note str
    Application notes for end users.
    hide_ios bool
    Do not display application icon on mobile app.
    hide_web bool
    Do not display application icon to users.
    logo str
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    status str
    Status of application. ("ACTIVE" or "INACTIVE").
    authUrl String
    The URL of the authenticating site for this app.
    label String
    The Application's display name.
    url String
    The URL of the sign-in page for this app.
    accessibilityErrorRedirectUrl String
    Custom error page URL.
    accessibilityLoginRedirectUrl String
    Custom login page for this application.
    accessibilitySelfService Boolean
    Enable self-service. By default, it is false.
    adminNote String
    Application notes for admins.
    appLinksJson String
    Displays specific appLinks for the app. The value for each application link should be boolean.
    autoSubmitToolbar Boolean
    Display auto submit toolbar.
    enduserNote String
    Application notes for end users.
    hideIos Boolean
    Do not display application icon on mobile app.
    hideWeb Boolean
    Do not display application icon to users.
    logo String
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    status String
    Status of application. ("ACTIVE" or "INACTIVE").

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BasicAuth resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LogoUrl string
    Direct link of application logo.
    Name string
    Name of the app.
    SignOnMode string
    Sign on mode of application.
    Id string
    The provider-assigned unique ID for this managed resource.
    LogoUrl string
    Direct link of application logo.
    Name string
    Name of the app.
    SignOnMode string
    Sign on mode of application.
    id String
    The provider-assigned unique ID for this managed resource.
    logoUrl String
    Direct link of application logo.
    name String
    Name of the app.
    signOnMode String
    Sign on mode of application.
    id string
    The provider-assigned unique ID for this managed resource.
    logoUrl string
    Direct link of application logo.
    name string
    Name of the app.
    signOnMode string
    Sign on mode of application.
    id str
    The provider-assigned unique ID for this managed resource.
    logo_url str
    Direct link of application logo.
    name str
    Name of the app.
    sign_on_mode str
    Sign on mode of application.
    id String
    The provider-assigned unique ID for this managed resource.
    logoUrl String
    Direct link of application logo.
    name String
    Name of the app.
    signOnMode String
    Sign on mode of application.

    Look up Existing BasicAuth Resource

    Get an existing BasicAuth 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?: BasicAuthState, opts?: CustomResourceOptions): BasicAuth
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accessibility_error_redirect_url: Optional[str] = None,
            accessibility_login_redirect_url: Optional[str] = None,
            accessibility_self_service: Optional[bool] = None,
            admin_note: Optional[str] = None,
            app_links_json: Optional[str] = None,
            auth_url: Optional[str] = None,
            auto_submit_toolbar: Optional[bool] = None,
            enduser_note: Optional[str] = None,
            hide_ios: Optional[bool] = None,
            hide_web: Optional[bool] = None,
            label: Optional[str] = None,
            logo: Optional[str] = None,
            logo_url: Optional[str] = None,
            name: Optional[str] = None,
            sign_on_mode: Optional[str] = None,
            status: Optional[str] = None,
            url: Optional[str] = None) -> BasicAuth
    func GetBasicAuth(ctx *Context, name string, id IDInput, state *BasicAuthState, opts ...ResourceOption) (*BasicAuth, error)
    public static BasicAuth Get(string name, Input<string> id, BasicAuthState? state, CustomResourceOptions? opts = null)
    public static BasicAuth get(String name, Output<String> id, BasicAuthState 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:
    AccessibilityErrorRedirectUrl string
    Custom error page URL.
    AccessibilityLoginRedirectUrl string
    Custom login page for this application.
    AccessibilitySelfService bool
    Enable self-service. By default, it is false.
    AdminNote string
    Application notes for admins.
    AppLinksJson string
    Displays specific appLinks for the app. The value for each application link should be boolean.
    AuthUrl string
    The URL of the authenticating site for this app.
    AutoSubmitToolbar bool
    Display auto submit toolbar.
    EnduserNote string
    Application notes for end users.
    HideIos bool
    Do not display application icon on mobile app.
    HideWeb bool
    Do not display application icon to users.
    Label string
    The Application's display name.
    Logo string
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    LogoUrl string
    Direct link of application logo.
    Name string
    Name of the app.
    SignOnMode string
    Sign on mode of application.
    Status string
    Status of application. ("ACTIVE" or "INACTIVE").
    Url string
    The URL of the sign-in page for this app.
    AccessibilityErrorRedirectUrl string
    Custom error page URL.
    AccessibilityLoginRedirectUrl string
    Custom login page for this application.
    AccessibilitySelfService bool
    Enable self-service. By default, it is false.
    AdminNote string
    Application notes for admins.
    AppLinksJson string
    Displays specific appLinks for the app. The value for each application link should be boolean.
    AuthUrl string
    The URL of the authenticating site for this app.
    AutoSubmitToolbar bool
    Display auto submit toolbar.
    EnduserNote string
    Application notes for end users.
    HideIos bool
    Do not display application icon on mobile app.
    HideWeb bool
    Do not display application icon to users.
    Label string
    The Application's display name.
    Logo string
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    LogoUrl string
    Direct link of application logo.
    Name string
    Name of the app.
    SignOnMode string
    Sign on mode of application.
    Status string
    Status of application. ("ACTIVE" or "INACTIVE").
    Url string
    The URL of the sign-in page for this app.
    accessibilityErrorRedirectUrl String
    Custom error page URL.
    accessibilityLoginRedirectUrl String
    Custom login page for this application.
    accessibilitySelfService Boolean
    Enable self-service. By default, it is false.
    adminNote String
    Application notes for admins.
    appLinksJson String
    Displays specific appLinks for the app. The value for each application link should be boolean.
    authUrl String
    The URL of the authenticating site for this app.
    autoSubmitToolbar Boolean
    Display auto submit toolbar.
    enduserNote String
    Application notes for end users.
    hideIos Boolean
    Do not display application icon on mobile app.
    hideWeb Boolean
    Do not display application icon to users.
    label String
    The Application's display name.
    logo String
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    logoUrl String
    Direct link of application logo.
    name String
    Name of the app.
    signOnMode String
    Sign on mode of application.
    status String
    Status of application. ("ACTIVE" or "INACTIVE").
    url String
    The URL of the sign-in page for this app.
    accessibilityErrorRedirectUrl string
    Custom error page URL.
    accessibilityLoginRedirectUrl string
    Custom login page for this application.
    accessibilitySelfService boolean
    Enable self-service. By default, it is false.
    adminNote string
    Application notes for admins.
    appLinksJson string
    Displays specific appLinks for the app. The value for each application link should be boolean.
    authUrl string
    The URL of the authenticating site for this app.
    autoSubmitToolbar boolean
    Display auto submit toolbar.
    enduserNote string
    Application notes for end users.
    hideIos boolean
    Do not display application icon on mobile app.
    hideWeb boolean
    Do not display application icon to users.
    label string
    The Application's display name.
    logo string
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    logoUrl string
    Direct link of application logo.
    name string
    Name of the app.
    signOnMode string
    Sign on mode of application.
    status string
    Status of application. ("ACTIVE" or "INACTIVE").
    url string
    The URL of the sign-in page for this app.
    accessibility_error_redirect_url str
    Custom error page URL.
    accessibility_login_redirect_url str
    Custom login page for this application.
    accessibility_self_service bool
    Enable self-service. By default, it is false.
    admin_note str
    Application notes for admins.
    app_links_json str
    Displays specific appLinks for the app. The value for each application link should be boolean.
    auth_url str
    The URL of the authenticating site for this app.
    auto_submit_toolbar bool
    Display auto submit toolbar.
    enduser_note str
    Application notes for end users.
    hide_ios bool
    Do not display application icon on mobile app.
    hide_web bool
    Do not display application icon to users.
    label str
    The Application's display name.
    logo str
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    logo_url str
    Direct link of application logo.
    name str
    Name of the app.
    sign_on_mode str
    Sign on mode of application.
    status str
    Status of application. ("ACTIVE" or "INACTIVE").
    url str
    The URL of the sign-in page for this app.
    accessibilityErrorRedirectUrl String
    Custom error page URL.
    accessibilityLoginRedirectUrl String
    Custom login page for this application.
    accessibilitySelfService Boolean
    Enable self-service. By default, it is false.
    adminNote String
    Application notes for admins.
    appLinksJson String
    Displays specific appLinks for the app. The value for each application link should be boolean.
    authUrl String
    The URL of the authenticating site for this app.
    autoSubmitToolbar Boolean
    Display auto submit toolbar.
    enduserNote String
    Application notes for end users.
    hideIos Boolean
    Do not display application icon on mobile app.
    hideWeb Boolean
    Do not display application icon to users.
    label String
    The Application's display name.
    logo String
    Local path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
    logoUrl String
    Direct link of application logo.
    name String
    Name of the app.
    signOnMode String
    Sign on mode of application.
    status String
    Status of application. ("ACTIVE" or "INACTIVE").
    url String
    The URL of the sign-in page for this app.

    Import

    A Basic Auth App can be imported via the Okta ID.

    $ pulumi import okta:app/basicAuth:BasicAuth example &#60;app id&#62;
    

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi