1. Packages
  2. Zitadel
  3. API Docs
  4. IdpAzureAd
zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse

zitadel.IdpAzureAd

Explore with Pulumi AI

zitadel logo
zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse

    Resource representing an Azure AD IDP on the instance.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zitadel = Pulumiverse.Zitadel;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Zitadel.IdpAzureAd("default", new()
        {
            ClientId = "9065bfc8-a08a...",
            ClientSecret = "H2n***",
            EmailVerified = true,
            IsAutoCreation = false,
            IsAutoUpdate = true,
            IsCreationAllowed = true,
            IsLinkingAllowed = false,
            Scopes = new[]
            {
                "openid",
                "profile",
                "email",
                "User.Read",
            },
            TenantType = "AZURE_AD_TENANT_TYPE_ORGANISATIONS",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zitadel.NewIdpAzureAd(ctx, "default", &zitadel.IdpAzureAdArgs{
    			ClientId:          pulumi.String("9065bfc8-a08a..."),
    			ClientSecret:      pulumi.String("H2n***"),
    			EmailVerified:     pulumi.Bool(true),
    			IsAutoCreation:    pulumi.Bool(false),
    			IsAutoUpdate:      pulumi.Bool(true),
    			IsCreationAllowed: pulumi.Bool(true),
    			IsLinkingAllowed:  pulumi.Bool(false),
    			Scopes: pulumi.StringArray{
    				pulumi.String("openid"),
    				pulumi.String("profile"),
    				pulumi.String("email"),
    				pulumi.String("User.Read"),
    			},
    			TenantType: pulumi.String("AZURE_AD_TENANT_TYPE_ORGANISATIONS"),
    		})
    		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.zitadel.IdpAzureAd;
    import com.pulumi.zitadel.IdpAzureAdArgs;
    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 default_ = new IdpAzureAd("default", IdpAzureAdArgs.builder()        
                .clientId("9065bfc8-a08a...")
                .clientSecret("H2n***")
                .emailVerified(true)
                .isAutoCreation(false)
                .isAutoUpdate(true)
                .isCreationAllowed(true)
                .isLinkingAllowed(false)
                .scopes(            
                    "openid",
                    "profile",
                    "email",
                    "User.Read")
                .tenantType("AZURE_AD_TENANT_TYPE_ORGANISATIONS")
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_zitadel as zitadel
    
    default = zitadel.IdpAzureAd("default",
        client_id="9065bfc8-a08a...",
        client_secret="H2n***",
        email_verified=True,
        is_auto_creation=False,
        is_auto_update=True,
        is_creation_allowed=True,
        is_linking_allowed=False,
        scopes=[
            "openid",
            "profile",
            "email",
            "User.Read",
        ],
        tenant_type="AZURE_AD_TENANT_TYPE_ORGANISATIONS")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zitadel from "@pulumiverse/zitadel";
    
    const _default = new zitadel.IdpAzureAd("default", {
        clientId: "9065bfc8-a08a...",
        clientSecret: "H2n***",
        emailVerified: true,
        isAutoCreation: false,
        isAutoUpdate: true,
        isCreationAllowed: true,
        isLinkingAllowed: false,
        scopes: [
            "openid",
            "profile",
            "email",
            "User.Read",
        ],
        tenantType: "AZURE_AD_TENANT_TYPE_ORGANISATIONS",
    });
    
    resources:
      default:
        type: zitadel:IdpAzureAd
        properties:
          clientId: 9065bfc8-a08a...
          clientSecret: H2n***
          emailVerified: true
          isAutoCreation: false
          isAutoUpdate: true
          isCreationAllowed: true
          isLinkingAllowed: false
          scopes:
            - openid
            - profile
            - email
            - User.Read
          tenantType: AZURE_AD_TENANT_TYPE_ORGANISATIONS
    

    Create IdpAzureAd Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IdpAzureAd(name: string, args: IdpAzureAdArgs, opts?: CustomResourceOptions);
    @overload
    def IdpAzureAd(resource_name: str,
                   args: IdpAzureAdArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdpAzureAd(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   client_id: Optional[str] = None,
                   client_secret: Optional[str] = None,
                   email_verified: Optional[bool] = None,
                   is_auto_creation: Optional[bool] = None,
                   is_auto_update: Optional[bool] = None,
                   is_creation_allowed: Optional[bool] = None,
                   is_linking_allowed: Optional[bool] = None,
                   name: Optional[str] = None,
                   scopes: Optional[Sequence[str]] = None,
                   tenant_id: Optional[str] = None,
                   tenant_type: Optional[str] = None)
    func NewIdpAzureAd(ctx *Context, name string, args IdpAzureAdArgs, opts ...ResourceOption) (*IdpAzureAd, error)
    public IdpAzureAd(string name, IdpAzureAdArgs args, CustomResourceOptions? opts = null)
    public IdpAzureAd(String name, IdpAzureAdArgs args)
    public IdpAzureAd(String name, IdpAzureAdArgs args, CustomResourceOptions options)
    
    type: zitadel:IdpAzureAd
    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 IdpAzureAdArgs
    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 IdpAzureAdArgs
    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 IdpAzureAdArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdpAzureAdArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdpAzureAdArgs
    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 idpAzureAdResource = new Zitadel.IdpAzureAd("idpAzureAdResource", new()
    {
        ClientId = "string",
        ClientSecret = "string",
        EmailVerified = false,
        IsAutoCreation = false,
        IsAutoUpdate = false,
        IsCreationAllowed = false,
        IsLinkingAllowed = false,
        Name = "string",
        Scopes = new[]
        {
            "string",
        },
        TenantId = "string",
        TenantType = "string",
    });
    
    example, err := zitadel.NewIdpAzureAd(ctx, "idpAzureAdResource", &zitadel.IdpAzureAdArgs{
    	ClientId:          pulumi.String("string"),
    	ClientSecret:      pulumi.String("string"),
    	EmailVerified:     pulumi.Bool(false),
    	IsAutoCreation:    pulumi.Bool(false),
    	IsAutoUpdate:      pulumi.Bool(false),
    	IsCreationAllowed: pulumi.Bool(false),
    	IsLinkingAllowed:  pulumi.Bool(false),
    	Name:              pulumi.String("string"),
    	Scopes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantId:   pulumi.String("string"),
    	TenantType: pulumi.String("string"),
    })
    
    var idpAzureAdResource = new IdpAzureAd("idpAzureAdResource", IdpAzureAdArgs.builder()
        .clientId("string")
        .clientSecret("string")
        .emailVerified(false)
        .isAutoCreation(false)
        .isAutoUpdate(false)
        .isCreationAllowed(false)
        .isLinkingAllowed(false)
        .name("string")
        .scopes("string")
        .tenantId("string")
        .tenantType("string")
        .build());
    
    idp_azure_ad_resource = zitadel.IdpAzureAd("idpAzureAdResource",
        client_id="string",
        client_secret="string",
        email_verified=False,
        is_auto_creation=False,
        is_auto_update=False,
        is_creation_allowed=False,
        is_linking_allowed=False,
        name="string",
        scopes=["string"],
        tenant_id="string",
        tenant_type="string")
    
    const idpAzureAdResource = new zitadel.IdpAzureAd("idpAzureAdResource", {
        clientId: "string",
        clientSecret: "string",
        emailVerified: false,
        isAutoCreation: false,
        isAutoUpdate: false,
        isCreationAllowed: false,
        isLinkingAllowed: false,
        name: "string",
        scopes: ["string"],
        tenantId: "string",
        tenantType: "string",
    });
    
    type: zitadel:IdpAzureAd
    properties:
        clientId: string
        clientSecret: string
        emailVerified: false
        isAutoCreation: false
        isAutoUpdate: false
        isCreationAllowed: false
        isLinkingAllowed: false
        name: string
        scopes:
            - string
        tenantId: string
        tenantType: string
    

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

    ClientId string
    client id generated by the identity provider
    ClientSecret string
    client secret generated by the identity provider
    EmailVerified bool
    automatically mark emails as verified
    IsAutoCreation bool
    enable if a new account in ZITADEL should be created automatically on login with an external account
    IsAutoUpdate bool
    enable if a the ZITADEL account fields should be updated automatically on each login
    IsCreationAllowed bool
    enable if users should be able to create a new account in ZITADEL when using an external account
    IsLinkingAllowed bool
    enable if users should be able to link an existing ZITADEL user with an external account
    Name string
    Name of the IDP
    Scopes List<string>
    the scopes requested by ZITADEL during the request on the identity provider
    TenantId string
    if tenantid is not set, the tenanttype is used
    TenantType string
    the azure ad tenant type
    ClientId string
    client id generated by the identity provider
    ClientSecret string
    client secret generated by the identity provider
    EmailVerified bool
    automatically mark emails as verified
    IsAutoCreation bool
    enable if a new account in ZITADEL should be created automatically on login with an external account
    IsAutoUpdate bool
    enable if a the ZITADEL account fields should be updated automatically on each login
    IsCreationAllowed bool
    enable if users should be able to create a new account in ZITADEL when using an external account
    IsLinkingAllowed bool
    enable if users should be able to link an existing ZITADEL user with an external account
    Name string
    Name of the IDP
    Scopes []string
    the scopes requested by ZITADEL during the request on the identity provider
    TenantId string
    if tenantid is not set, the tenanttype is used
    TenantType string
    the azure ad tenant type
    clientId String
    client id generated by the identity provider
    clientSecret String
    client secret generated by the identity provider
    emailVerified Boolean
    automatically mark emails as verified
    isAutoCreation Boolean
    enable if a new account in ZITADEL should be created automatically on login with an external account
    isAutoUpdate Boolean
    enable if a the ZITADEL account fields should be updated automatically on each login
    isCreationAllowed Boolean
    enable if users should be able to create a new account in ZITADEL when using an external account
    isLinkingAllowed Boolean
    enable if users should be able to link an existing ZITADEL user with an external account
    name String
    Name of the IDP
    scopes List<String>
    the scopes requested by ZITADEL during the request on the identity provider
    tenantId String
    if tenantid is not set, the tenanttype is used
    tenantType String
    the azure ad tenant type
    clientId string
    client id generated by the identity provider
    clientSecret string
    client secret generated by the identity provider
    emailVerified boolean
    automatically mark emails as verified
    isAutoCreation boolean
    enable if a new account in ZITADEL should be created automatically on login with an external account
    isAutoUpdate boolean
    enable if a the ZITADEL account fields should be updated automatically on each login
    isCreationAllowed boolean
    enable if users should be able to create a new account in ZITADEL when using an external account
    isLinkingAllowed boolean
    enable if users should be able to link an existing ZITADEL user with an external account
    name string
    Name of the IDP
    scopes string[]
    the scopes requested by ZITADEL during the request on the identity provider
    tenantId string
    if tenantid is not set, the tenanttype is used
    tenantType string
    the azure ad tenant type
    client_id str
    client id generated by the identity provider
    client_secret str
    client secret generated by the identity provider
    email_verified bool
    automatically mark emails as verified
    is_auto_creation bool
    enable if a new account in ZITADEL should be created automatically on login with an external account
    is_auto_update bool
    enable if a the ZITADEL account fields should be updated automatically on each login
    is_creation_allowed bool
    enable if users should be able to create a new account in ZITADEL when using an external account
    is_linking_allowed bool
    enable if users should be able to link an existing ZITADEL user with an external account
    name str
    Name of the IDP
    scopes Sequence[str]
    the scopes requested by ZITADEL during the request on the identity provider
    tenant_id str
    if tenantid is not set, the tenanttype is used
    tenant_type str
    the azure ad tenant type
    clientId String
    client id generated by the identity provider
    clientSecret String
    client secret generated by the identity provider
    emailVerified Boolean
    automatically mark emails as verified
    isAutoCreation Boolean
    enable if a new account in ZITADEL should be created automatically on login with an external account
    isAutoUpdate Boolean
    enable if a the ZITADEL account fields should be updated automatically on each login
    isCreationAllowed Boolean
    enable if users should be able to create a new account in ZITADEL when using an external account
    isLinkingAllowed Boolean
    enable if users should be able to link an existing ZITADEL user with an external account
    name String
    Name of the IDP
    scopes List<String>
    the scopes requested by ZITADEL during the request on the identity provider
    tenantId String
    if tenantid is not set, the tenanttype is used
    tenantType String
    the azure ad tenant type

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IdpAzureAd 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 IdpAzureAd Resource

    Get an existing IdpAzureAd 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?: IdpAzureAdState, opts?: CustomResourceOptions): IdpAzureAd
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_id: Optional[str] = None,
            client_secret: Optional[str] = None,
            email_verified: Optional[bool] = None,
            is_auto_creation: Optional[bool] = None,
            is_auto_update: Optional[bool] = None,
            is_creation_allowed: Optional[bool] = None,
            is_linking_allowed: Optional[bool] = None,
            name: Optional[str] = None,
            scopes: Optional[Sequence[str]] = None,
            tenant_id: Optional[str] = None,
            tenant_type: Optional[str] = None) -> IdpAzureAd
    func GetIdpAzureAd(ctx *Context, name string, id IDInput, state *IdpAzureAdState, opts ...ResourceOption) (*IdpAzureAd, error)
    public static IdpAzureAd Get(string name, Input<string> id, IdpAzureAdState? state, CustomResourceOptions? opts = null)
    public static IdpAzureAd get(String name, Output<String> id, IdpAzureAdState 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:
    ClientId string
    client id generated by the identity provider
    ClientSecret string
    client secret generated by the identity provider
    EmailVerified bool
    automatically mark emails as verified
    IsAutoCreation bool
    enable if a new account in ZITADEL should be created automatically on login with an external account
    IsAutoUpdate bool
    enable if a the ZITADEL account fields should be updated automatically on each login
    IsCreationAllowed bool
    enable if users should be able to create a new account in ZITADEL when using an external account
    IsLinkingAllowed bool
    enable if users should be able to link an existing ZITADEL user with an external account
    Name string
    Name of the IDP
    Scopes List<string>
    the scopes requested by ZITADEL during the request on the identity provider
    TenantId string
    if tenantid is not set, the tenanttype is used
    TenantType string
    the azure ad tenant type
    ClientId string
    client id generated by the identity provider
    ClientSecret string
    client secret generated by the identity provider
    EmailVerified bool
    automatically mark emails as verified
    IsAutoCreation bool
    enable if a new account in ZITADEL should be created automatically on login with an external account
    IsAutoUpdate bool
    enable if a the ZITADEL account fields should be updated automatically on each login
    IsCreationAllowed bool
    enable if users should be able to create a new account in ZITADEL when using an external account
    IsLinkingAllowed bool
    enable if users should be able to link an existing ZITADEL user with an external account
    Name string
    Name of the IDP
    Scopes []string
    the scopes requested by ZITADEL during the request on the identity provider
    TenantId string
    if tenantid is not set, the tenanttype is used
    TenantType string
    the azure ad tenant type
    clientId String
    client id generated by the identity provider
    clientSecret String
    client secret generated by the identity provider
    emailVerified Boolean
    automatically mark emails as verified
    isAutoCreation Boolean
    enable if a new account in ZITADEL should be created automatically on login with an external account
    isAutoUpdate Boolean
    enable if a the ZITADEL account fields should be updated automatically on each login
    isCreationAllowed Boolean
    enable if users should be able to create a new account in ZITADEL when using an external account
    isLinkingAllowed Boolean
    enable if users should be able to link an existing ZITADEL user with an external account
    name String
    Name of the IDP
    scopes List<String>
    the scopes requested by ZITADEL during the request on the identity provider
    tenantId String
    if tenantid is not set, the tenanttype is used
    tenantType String
    the azure ad tenant type
    clientId string
    client id generated by the identity provider
    clientSecret string
    client secret generated by the identity provider
    emailVerified boolean
    automatically mark emails as verified
    isAutoCreation boolean
    enable if a new account in ZITADEL should be created automatically on login with an external account
    isAutoUpdate boolean
    enable if a the ZITADEL account fields should be updated automatically on each login
    isCreationAllowed boolean
    enable if users should be able to create a new account in ZITADEL when using an external account
    isLinkingAllowed boolean
    enable if users should be able to link an existing ZITADEL user with an external account
    name string
    Name of the IDP
    scopes string[]
    the scopes requested by ZITADEL during the request on the identity provider
    tenantId string
    if tenantid is not set, the tenanttype is used
    tenantType string
    the azure ad tenant type
    client_id str
    client id generated by the identity provider
    client_secret str
    client secret generated by the identity provider
    email_verified bool
    automatically mark emails as verified
    is_auto_creation bool
    enable if a new account in ZITADEL should be created automatically on login with an external account
    is_auto_update bool
    enable if a the ZITADEL account fields should be updated automatically on each login
    is_creation_allowed bool
    enable if users should be able to create a new account in ZITADEL when using an external account
    is_linking_allowed bool
    enable if users should be able to link an existing ZITADEL user with an external account
    name str
    Name of the IDP
    scopes Sequence[str]
    the scopes requested by ZITADEL during the request on the identity provider
    tenant_id str
    if tenantid is not set, the tenanttype is used
    tenant_type str
    the azure ad tenant type
    clientId String
    client id generated by the identity provider
    clientSecret String
    client secret generated by the identity provider
    emailVerified Boolean
    automatically mark emails as verified
    isAutoCreation Boolean
    enable if a new account in ZITADEL should be created automatically on login with an external account
    isAutoUpdate Boolean
    enable if a the ZITADEL account fields should be updated automatically on each login
    isCreationAllowed Boolean
    enable if users should be able to create a new account in ZITADEL when using an external account
    isLinkingAllowed Boolean
    enable if users should be able to link an existing ZITADEL user with an external account
    name String
    Name of the IDP
    scopes List<String>
    the scopes requested by ZITADEL during the request on the identity provider
    tenantId String
    if tenantid is not set, the tenanttype is used
    tenantType String
    the azure ad tenant type

    Import

    terraform The resource can be imported using the ID format <id[:client_secret]>, e.g.

     $ pulumi import zitadel:index/idpAzureAd:IdpAzureAd imported '123456789012345678:12345678-1234-1234-1234-123456789012'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zitadel pulumiverse/pulumi-zitadel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the zitadel Terraform Provider.
    zitadel logo
    zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse