zitadel.IdpGithubEs
Explore with Pulumi AI
Resource representing a GitHub Enterprise 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.IdpGithubEs("default", new()
{
AuthorizationEndpoint = "https://auth.endpoint",
ClientId = "86a165...",
ClientSecret = "*****afdbac18",
IsAutoCreation = false,
IsAutoUpdate = true,
IsCreationAllowed = true,
IsLinkingAllowed = false,
Scopes = new[]
{
"openid",
"profile",
"email",
},
TokenEndpoint = "https://token.endpoint",
UserEndpoint = "https://user.endpoint",
});
});
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.NewIdpGithubEs(ctx, "default", &zitadel.IdpGithubEsArgs{
AuthorizationEndpoint: pulumi.String("https://auth.endpoint"),
ClientId: pulumi.String("86a165..."),
ClientSecret: pulumi.String("*****afdbac18"),
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"),
},
TokenEndpoint: pulumi.String("https://token.endpoint"),
UserEndpoint: pulumi.String("https://user.endpoint"),
})
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.IdpGithubEs;
import com.pulumi.zitadel.IdpGithubEsArgs;
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 IdpGithubEs("default", IdpGithubEsArgs.builder()
.authorizationEndpoint("https://auth.endpoint")
.clientId("86a165...")
.clientSecret("*****afdbac18")
.isAutoCreation(false)
.isAutoUpdate(true)
.isCreationAllowed(true)
.isLinkingAllowed(false)
.scopes(
"openid",
"profile",
"email")
.tokenEndpoint("https://token.endpoint")
.userEndpoint("https://user.endpoint")
.build());
}
}
import pulumi
import pulumiverse_zitadel as zitadel
default = zitadel.IdpGithubEs("default",
authorization_endpoint="https://auth.endpoint",
client_id="86a165...",
client_secret="*****afdbac18",
is_auto_creation=False,
is_auto_update=True,
is_creation_allowed=True,
is_linking_allowed=False,
scopes=[
"openid",
"profile",
"email",
],
token_endpoint="https://token.endpoint",
user_endpoint="https://user.endpoint")
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumiverse/zitadel";
const _default = new zitadel.IdpGithubEs("default", {
authorizationEndpoint: "https://auth.endpoint",
clientId: "86a165...",
clientSecret: "*****afdbac18",
isAutoCreation: false,
isAutoUpdate: true,
isCreationAllowed: true,
isLinkingAllowed: false,
scopes: [
"openid",
"profile",
"email",
],
tokenEndpoint: "https://token.endpoint",
userEndpoint: "https://user.endpoint",
});
resources:
default:
type: zitadel:IdpGithubEs
properties:
authorizationEndpoint: https://auth.endpoint
clientId: 86a165...
clientSecret: '*****afdbac18'
isAutoCreation: false
isAutoUpdate: true
isCreationAllowed: true
isLinkingAllowed: false
scopes:
- openid
- profile
- email
tokenEndpoint: https://token.endpoint
userEndpoint: https://user.endpoint
Create IdpGithubEs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdpGithubEs(name: string, args: IdpGithubEsArgs, opts?: CustomResourceOptions);
@overload
def IdpGithubEs(resource_name: str,
args: IdpGithubEsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdpGithubEs(resource_name: str,
opts: Optional[ResourceOptions] = None,
authorization_endpoint: Optional[str] = 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_linking_allowed: Optional[bool] = None,
token_endpoint: Optional[str] = None,
user_endpoint: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None)
func NewIdpGithubEs(ctx *Context, name string, args IdpGithubEsArgs, opts ...ResourceOption) (*IdpGithubEs, error)
public IdpGithubEs(string name, IdpGithubEsArgs args, CustomResourceOptions? opts = null)
public IdpGithubEs(String name, IdpGithubEsArgs args)
public IdpGithubEs(String name, IdpGithubEsArgs args, CustomResourceOptions options)
type: zitadel:IdpGithubEs
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 IdpGithubEsArgs
- 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 IdpGithubEsArgs
- 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 IdpGithubEsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdpGithubEsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdpGithubEsArgs
- 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 idpGithubEsResource = new Zitadel.IdpGithubEs("idpGithubEsResource", new()
{
AuthorizationEndpoint = "string",
ClientId = "string",
ClientSecret = "string",
IsAutoCreation = false,
IsAutoUpdate = false,
IsCreationAllowed = false,
IsLinkingAllowed = false,
TokenEndpoint = "string",
UserEndpoint = "string",
Name = "string",
Scopes = new[]
{
"string",
},
});
example, err := zitadel.NewIdpGithubEs(ctx, "idpGithubEsResource", &zitadel.IdpGithubEsArgs{
AuthorizationEndpoint: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
IsAutoCreation: pulumi.Bool(false),
IsAutoUpdate: pulumi.Bool(false),
IsCreationAllowed: pulumi.Bool(false),
IsLinkingAllowed: pulumi.Bool(false),
TokenEndpoint: pulumi.String("string"),
UserEndpoint: pulumi.String("string"),
Name: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
})
var idpGithubEsResource = new IdpGithubEs("idpGithubEsResource", IdpGithubEsArgs.builder()
.authorizationEndpoint("string")
.clientId("string")
.clientSecret("string")
.isAutoCreation(false)
.isAutoUpdate(false)
.isCreationAllowed(false)
.isLinkingAllowed(false)
.tokenEndpoint("string")
.userEndpoint("string")
.name("string")
.scopes("string")
.build());
idp_github_es_resource = zitadel.IdpGithubEs("idpGithubEsResource",
authorization_endpoint="string",
client_id="string",
client_secret="string",
is_auto_creation=False,
is_auto_update=False,
is_creation_allowed=False,
is_linking_allowed=False,
token_endpoint="string",
user_endpoint="string",
name="string",
scopes=["string"])
const idpGithubEsResource = new zitadel.IdpGithubEs("idpGithubEsResource", {
authorizationEndpoint: "string",
clientId: "string",
clientSecret: "string",
isAutoCreation: false,
isAutoUpdate: false,
isCreationAllowed: false,
isLinkingAllowed: false,
tokenEndpoint: "string",
userEndpoint: "string",
name: "string",
scopes: ["string"],
});
type: zitadel:IdpGithubEs
properties:
authorizationEndpoint: string
clientId: string
clientSecret: string
isAutoCreation: false
isAutoUpdate: false
isCreationAllowed: false
isLinkingAllowed: false
name: string
scopes:
- string
tokenEndpoint: string
userEndpoint: string
IdpGithubEs 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 IdpGithubEs resource accepts the following input properties:
- string
- the providers authorization endpoint
- 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
Linking boolAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- Token
Endpoint string - the providers token endpoint
- User
Endpoint string - the providers user endpoint
- Name string
- Name of the IDP
- Scopes List<string>
- the scopes requested by ZITADEL during the request on the identity provider
- string
- the providers authorization endpoint
- 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
Linking boolAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- Token
Endpoint string - the providers token endpoint
- User
Endpoint string - the providers user endpoint
- Name string
- Name of the IDP
- Scopes []string
- the scopes requested by ZITADEL during the request on the identity provider
- String
- the providers authorization endpoint
- 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
Linking BooleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- token
Endpoint String - the providers token endpoint
- user
Endpoint String - the providers user endpoint
- name String
- Name of the IDP
- scopes List<String>
- the scopes requested by ZITADEL during the request on the identity provider
- string
- the providers authorization endpoint
- 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
Linking booleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- token
Endpoint string - the providers token endpoint
- user
Endpoint string - the providers user endpoint
- name string
- Name of the IDP
- scopes string[]
- the scopes requested by ZITADEL during the request on the identity provider
- str
- the providers authorization endpoint
- 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_
linking_ boolallowed - enable if users should be able to link an existing ZITADEL user with an external account
- token_
endpoint str - the providers token endpoint
- user_
endpoint str - the providers user endpoint
- name str
- Name of the IDP
- scopes Sequence[str]
- the scopes requested by ZITADEL during the request on the identity provider
- String
- the providers authorization endpoint
- 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
Linking BooleanAllowed - enable if users should be able to link an existing ZITADEL user with an external account
- token
Endpoint String - the providers token endpoint
- user
Endpoint String - the providers user endpoint
- name String
- Name of the IDP
- 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 IdpGithubEs 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 IdpGithubEs Resource
Get an existing IdpGithubEs 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?: IdpGithubEsState, opts?: CustomResourceOptions): IdpGithubEs
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorization_endpoint: Optional[str] = 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_linking_allowed: Optional[bool] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
token_endpoint: Optional[str] = None,
user_endpoint: Optional[str] = None) -> IdpGithubEs
func GetIdpGithubEs(ctx *Context, name string, id IDInput, state *IdpGithubEsState, opts ...ResourceOption) (*IdpGithubEs, error)
public static IdpGithubEs Get(string name, Input<string> id, IdpGithubEsState? state, CustomResourceOptions? opts = null)
public static IdpGithubEs get(String name, Output<String> id, IdpGithubEsState 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.
- string
- the providers authorization endpoint
- 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
Linking boolAllowed - 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
- Token
Endpoint string - the providers token endpoint
- User
Endpoint string - the providers user endpoint
- string
- the providers authorization endpoint
- 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
Linking boolAllowed - 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
- Token
Endpoint string - the providers token endpoint
- User
Endpoint string - the providers user endpoint
- String
- the providers authorization endpoint
- 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
Linking BooleanAllowed - 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
- token
Endpoint String - the providers token endpoint
- user
Endpoint String - the providers user endpoint
- string
- the providers authorization endpoint
- 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
Linking booleanAllowed - 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
- token
Endpoint string - the providers token endpoint
- user
Endpoint string - the providers user endpoint
- str
- the providers authorization endpoint
- 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_
linking_ boolallowed - 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
- token_
endpoint str - the providers token endpoint
- user_
endpoint str - the providers user endpoint
- String
- the providers authorization endpoint
- 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
Linking BooleanAllowed - 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
- token
Endpoint String - the providers token endpoint
- user
Endpoint String - the providers user endpoint
Import
terraform The resource can be imported using the ID format <id[:client_secret]>
, e.g.
$ pulumi import zitadel:index/idpGithubEs:IdpGithubEs imported '123456789012345678:1234567890123456781234567890123456787890'
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.