zitadel.OrgIdpOidc
Explore with Pulumi AI
Resource representing a generic OIDC IdP on the organization.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumiverse.Zitadel;
return await Deployment.RunAsync(() =>
{
var @default = new Zitadel.OrgIdpOidc("default", new()
{
OrgId = data.Zitadel_org.Default.Id,
ClientId = "a_client_id",
ClientSecret = "a_client_secret",
Scopes = new[]
{
"openid",
"profile",
"email",
},
Issuer = "https://example.com",
IsLinkingAllowed = false,
IsCreationAllowed = true,
IsAutoCreation = false,
IsAutoUpdate = true,
IsIdTokenMapping = true,
});
});
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.NewOrgIdpOidc(ctx, "default", &zitadel.OrgIdpOidcArgs{
OrgId: pulumi.Any(data.Zitadel_org.Default.Id),
ClientId: pulumi.String("a_client_id"),
ClientSecret: pulumi.String("a_client_secret"),
Scopes: pulumi.StringArray{
pulumi.String("openid"),
pulumi.String("profile"),
pulumi.String("email"),
},
Issuer: pulumi.String("https://example.com"),
IsLinkingAllowed: pulumi.Bool(false),
IsCreationAllowed: pulumi.Bool(true),
IsAutoCreation: pulumi.Bool(false),
IsAutoUpdate: pulumi.Bool(true),
IsIdTokenMapping: pulumi.Bool(true),
})
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.OrgIdpOidc;
import com.pulumi.zitadel.OrgIdpOidcArgs;
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 OrgIdpOidc("default", OrgIdpOidcArgs.builder()
.orgId(data.zitadel_org().default().id())
.clientId("a_client_id")
.clientSecret("a_client_secret")
.scopes(
"openid",
"profile",
"email")
.issuer("https://example.com")
.isLinkingAllowed(false)
.isCreationAllowed(true)
.isAutoCreation(false)
.isAutoUpdate(true)
.isIdTokenMapping(true)
.build());
}
}
import pulumi
import pulumiverse_zitadel as zitadel
default = zitadel.OrgIdpOidc("default",
org_id=data["zitadel_org"]["default"]["id"],
client_id="a_client_id",
client_secret="a_client_secret",
scopes=[
"openid",
"profile",
"email",
],
issuer="https://example.com",
is_linking_allowed=False,
is_creation_allowed=True,
is_auto_creation=False,
is_auto_update=True,
is_id_token_mapping=True)
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumiverse/zitadel";
const _default = new zitadel.OrgIdpOidc("default", {
orgId: data.zitadel_org["default"].id,
clientId: "a_client_id",
clientSecret: "a_client_secret",
scopes: [
"openid",
"profile",
"email",
],
issuer: "https://example.com",
isLinkingAllowed: false,
isCreationAllowed: true,
isAutoCreation: false,
isAutoUpdate: true,
isIdTokenMapping: true,
});
resources:
default:
type: zitadel:OrgIdpOidc
properties:
orgId: ${data.zitadel_org.default.id}
clientId: a_client_id
clientSecret: a_client_secret
scopes:
- openid
- profile
- email
issuer: https://example.com
isLinkingAllowed: false
isCreationAllowed: true
isAutoCreation: false
isAutoUpdate: true
isIdTokenMapping: true
Create OrgIdpOidc Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrgIdpOidc(name: string, args: OrgIdpOidcArgs, opts?: CustomResourceOptions);
@overload
def OrgIdpOidc(resource_name: str,
args: OrgIdpOidcArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrgIdpOidc(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
is_auto_creation: Optional[bool] = None,
is_auto_update: Optional[bool] = None,
is_creation_allowed: Optional[bool] = None,
is_id_token_mapping: Optional[bool] = None,
is_linking_allowed: Optional[bool] = None,
issuer: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
scopes: Optional[Sequence[str]] = None)
func NewOrgIdpOidc(ctx *Context, name string, args OrgIdpOidcArgs, opts ...ResourceOption) (*OrgIdpOidc, error)
public OrgIdpOidc(string name, OrgIdpOidcArgs args, CustomResourceOptions? opts = null)
public OrgIdpOidc(String name, OrgIdpOidcArgs args)
public OrgIdpOidc(String name, OrgIdpOidcArgs args, CustomResourceOptions options)
type: zitadel:OrgIdpOidc
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 OrgIdpOidcArgs
- 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 OrgIdpOidcArgs
- 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 OrgIdpOidcArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrgIdpOidcArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrgIdpOidcArgs
- 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 orgIdpOidcResource = new Zitadel.OrgIdpOidc("orgIdpOidcResource", new()
{
ClientId = "string",
ClientSecret = "string",
IsAutoCreation = false,
IsAutoUpdate = false,
IsCreationAllowed = false,
IsIdTokenMapping = false,
IsLinkingAllowed = false,
Issuer = "string",
Name = "string",
OrgId = "string",
Scopes = new[]
{
"string",
},
});
example, err := zitadel.NewOrgIdpOidc(ctx, "orgIdpOidcResource", &zitadel.OrgIdpOidcArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
IsAutoCreation: pulumi.Bool(false),
IsAutoUpdate: pulumi.Bool(false),
IsCreationAllowed: pulumi.Bool(false),
IsIdTokenMapping: pulumi.Bool(false),
IsLinkingAllowed: pulumi.Bool(false),
Issuer: pulumi.String("string"),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
})
var orgIdpOidcResource = new OrgIdpOidc("orgIdpOidcResource", OrgIdpOidcArgs.builder()
.clientId("string")
.clientSecret("string")
.isAutoCreation(false)
.isAutoUpdate(false)
.isCreationAllowed(false)
.isIdTokenMapping(false)
.isLinkingAllowed(false)
.issuer("string")
.name("string")
.orgId("string")
.scopes("string")
.build());
org_idp_oidc_resource = zitadel.OrgIdpOidc("orgIdpOidcResource",
client_id="string",
client_secret="string",
is_auto_creation=False,
is_auto_update=False,
is_creation_allowed=False,
is_id_token_mapping=False,
is_linking_allowed=False,
issuer="string",
name="string",
org_id="string",
scopes=["string"])
const orgIdpOidcResource = new zitadel.OrgIdpOidc("orgIdpOidcResource", {
clientId: "string",
clientSecret: "string",
isAutoCreation: false,
isAutoUpdate: false,
isCreationAllowed: false,
isIdTokenMapping: false,
isLinkingAllowed: false,
issuer: "string",
name: "string",
orgId: "string",
scopes: ["string"],
});
type: zitadel:OrgIdpOidc
properties:
clientId: string
clientSecret: string
isAutoCreation: false
isAutoUpdate: false
isCreationAllowed: false
isIdTokenMapping: false
isLinkingAllowed: false
issuer: string
name: string
orgId: string
scopes:
- string
OrgIdpOidc 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 OrgIdpOidc resource accepts the following input properties:
- Client
Id string - client id generated by the identity provider
- Client
Secret string - client secret generated by the identity provider
- Is
Auto boolCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- Is
Auto boolUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- Is
Creation boolAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- Is
Id boolToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- Is
Linking boolAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the issuer of the idp
- Name string
- Name of the IDP
- Org
Id string - ID of the organization
- Scopes List<string>
- the scopes requested by ZITADEL during the request on the identity provider
- Client
Id string - client id generated by the identity provider
- Client
Secret string - client secret generated by the identity provider
- Is
Auto boolCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- Is
Auto boolUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- Is
Creation boolAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- Is
Id boolToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- Is
Linking boolAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the issuer of the idp
- Name string
- Name of the IDP
- Org
Id string - ID of the organization
- Scopes []string
- the scopes requested by ZITADEL during the request on the identity provider
- client
Id String - client id generated by the identity provider
- client
Secret String - client secret generated by the identity provider
- is
Auto BooleanCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is
Auto BooleanUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is
Creation BooleanAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is
Id BooleanToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is
Linking BooleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the issuer of the idp
- name String
- Name of the IDP
- org
Id String - ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
- client
Id string - client id generated by the identity provider
- client
Secret string - client secret generated by the identity provider
- is
Auto booleanCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is
Auto booleanUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is
Creation booleanAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is
Id booleanToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is
Linking booleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer string
- the issuer of the idp
- name string
- Name of the IDP
- org
Id string - ID of the organization
- scopes string[]
- the scopes requested by ZITADEL during the request on the identity provider
- client_
id str - client id generated by the identity provider
- client_
secret str - client secret generated by the identity provider
- is_
auto_ boolcreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is_
auto_ boolupdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is_
creation_ boolallowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is_
id_ booltoken_ mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is_
linking_ boolallowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer str
- the issuer of the idp
- name str
- Name of the IDP
- org_
id str - ID of the organization
- scopes Sequence[str]
- the scopes requested by ZITADEL during the request on the identity provider
- client
Id String - client id generated by the identity provider
- client
Secret String - client secret generated by the identity provider
- is
Auto BooleanCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is
Auto BooleanUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is
Creation BooleanAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is
Id BooleanToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is
Linking BooleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the issuer of the idp
- name String
- Name of the IDP
- org
Id String - ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
Outputs
All input properties are implicitly available as output properties. Additionally, the OrgIdpOidc 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 OrgIdpOidc Resource
Get an existing OrgIdpOidc 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?: OrgIdpOidcState, opts?: CustomResourceOptions): OrgIdpOidc
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
is_auto_creation: Optional[bool] = None,
is_auto_update: Optional[bool] = None,
is_creation_allowed: Optional[bool] = None,
is_id_token_mapping: Optional[bool] = None,
is_linking_allowed: Optional[bool] = None,
issuer: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
scopes: Optional[Sequence[str]] = None) -> OrgIdpOidc
func GetOrgIdpOidc(ctx *Context, name string, id IDInput, state *OrgIdpOidcState, opts ...ResourceOption) (*OrgIdpOidc, error)
public static OrgIdpOidc Get(string name, Input<string> id, OrgIdpOidcState? state, CustomResourceOptions? opts = null)
public static OrgIdpOidc get(String name, Output<String> id, OrgIdpOidcState 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.
- Client
Id string - client id generated by the identity provider
- Client
Secret string - client secret generated by the identity provider
- Is
Auto boolCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- Is
Auto boolUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- Is
Creation boolAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- Is
Id boolToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- Is
Linking boolAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the issuer of the idp
- Name string
- Name of the IDP
- Org
Id string - ID of the organization
- Scopes List<string>
- the scopes requested by ZITADEL during the request on the identity provider
- Client
Id string - client id generated by the identity provider
- Client
Secret string - client secret generated by the identity provider
- Is
Auto boolCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- Is
Auto boolUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- Is
Creation boolAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- Is
Id boolToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- Is
Linking boolAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- Issuer string
- the issuer of the idp
- Name string
- Name of the IDP
- Org
Id string - ID of the organization
- Scopes []string
- the scopes requested by ZITADEL during the request on the identity provider
- client
Id String - client id generated by the identity provider
- client
Secret String - client secret generated by the identity provider
- is
Auto BooleanCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is
Auto BooleanUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is
Creation BooleanAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is
Id BooleanToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is
Linking BooleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the issuer of the idp
- name String
- Name of the IDP
- org
Id String - ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
- client
Id string - client id generated by the identity provider
- client
Secret string - client secret generated by the identity provider
- is
Auto booleanCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is
Auto booleanUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is
Creation booleanAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is
Id booleanToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is
Linking booleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer string
- the issuer of the idp
- name string
- Name of the IDP
- org
Id string - ID of the organization
- scopes string[]
- the scopes requested by ZITADEL during the request on the identity provider
- client_
id str - client id generated by the identity provider
- client_
secret str - client secret generated by the identity provider
- is_
auto_ boolcreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is_
auto_ boolupdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is_
creation_ boolallowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is_
id_ booltoken_ mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is_
linking_ boolallowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer str
- the issuer of the idp
- name str
- Name of the IDP
- org_
id str - ID of the organization
- scopes Sequence[str]
- the scopes requested by ZITADEL during the request on the identity provider
- client
Id String - client id generated by the identity provider
- client
Secret String - client secret generated by the identity provider
- is
Auto BooleanCreation - enable if a new account in ZITADEL should be created automatically on login with an external account
- is
Auto BooleanUpdate - enable if a the ZITADEL account fields should be updated automatically on each login
- is
Creation BooleanAllowed - enable if users should be able to create a new account in ZITADEL when using an external account
- is
Id BooleanToken Mapping - if true, provider information get mapped from the id token, not from the userinfo endpoint
- is
Linking BooleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- issuer String
- the issuer of the idp
- name String
- Name of the IDP
- org
Id String - ID of the organization
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
Import
terraform The resource can be imported using the ID format <id[:org_id][:client_secret]>
, e.g.
$ pulumi import zitadel:index/orgIdpOidc:OrgIdpOidc imported '123456789012345678:123456789012345678:1234567890abcdef'
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.