1. Packages
  2. Rancher2 Provider
  3. API Docs
  4. AuthConfigGenericOidc
Rancher 2 v11.0.0 published on Wednesday, Dec 24, 2025 by Pulumi
rancher2 logo
Rancher 2 v11.0.0 published on Wednesday, Dec 24, 2025 by Pulumi

    Provides a Rancher v2 Auth Config Generic OIDC resource. This can be used to configure and enable the Generic OIDC authentication provider for Rancher v2.

    In addition to the built-in local auth, only one external auth config provider can be enabled at a time.

    Example Usage

    This example configures Rancher to use GitLab as a Generic OIDC provider.

    import * as pulumi from "@pulumi/pulumi";
    import * as rancher2 from "@pulumi/rancher2";
    
    const genericOidc = new rancher2.AuthConfigGenericOidc("generic_oidc", {
        name: "genericoidc",
        clientId: "<GITLAB_APPLICATION_ID>",
        clientSecret: "<GITLAB_CLIENT_SECRET>",
        issuer: "https://gitlab.com",
        rancherUrl: "https://<RANCHER_URL>/verify-auth",
        scopes: "openid profile email read_api",
        groupsField: "groups",
        groupSearchEnabled: true,
    });
    
    import pulumi
    import pulumi_rancher2 as rancher2
    
    generic_oidc = rancher2.AuthConfigGenericOidc("generic_oidc",
        name="genericoidc",
        client_id="<GITLAB_APPLICATION_ID>",
        client_secret="<GITLAB_CLIENT_SECRET>",
        issuer="https://gitlab.com",
        rancher_url="https://<RANCHER_URL>/verify-auth",
        scopes="openid profile email read_api",
        groups_field="groups",
        group_search_enabled=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-rancher2/sdk/v11/go/rancher2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rancher2.NewAuthConfigGenericOidc(ctx, "generic_oidc", &rancher2.AuthConfigGenericOidcArgs{
    			Name:               "genericoidc",
    			ClientId:           pulumi.String("<GITLAB_APPLICATION_ID>"),
    			ClientSecret:       pulumi.String("<GITLAB_CLIENT_SECRET>"),
    			Issuer:             pulumi.String("https://gitlab.com"),
    			RancherUrl:         pulumi.String("https://<RANCHER_URL>/verify-auth"),
    			Scopes:             pulumi.String("openid profile email read_api"),
    			GroupsField:        pulumi.String("groups"),
    			GroupSearchEnabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rancher2 = Pulumi.Rancher2;
    
    return await Deployment.RunAsync(() => 
    {
        var genericOidc = new Rancher2.AuthConfigGenericOidc("generic_oidc", new()
        {
            Name = "genericoidc",
            ClientId = "<GITLAB_APPLICATION_ID>",
            ClientSecret = "<GITLAB_CLIENT_SECRET>",
            Issuer = "https://gitlab.com",
            RancherUrl = "https://<RANCHER_URL>/verify-auth",
            Scopes = "openid profile email read_api",
            GroupsField = "groups",
            GroupSearchEnabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rancher2.AuthConfigGenericOidc;
    import com.pulumi.rancher2.AuthConfigGenericOidcArgs;
    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 genericOidc = new AuthConfigGenericOidc("genericOidc", AuthConfigGenericOidcArgs.builder()
                .name("genericoidc")
                .clientId("<GITLAB_APPLICATION_ID>")
                .clientSecret("<GITLAB_CLIENT_SECRET>")
                .issuer("https://gitlab.com")
                .rancherUrl("https://<RANCHER_URL>/verify-auth")
                .scopes("openid profile email read_api")
                .groupsField("groups")
                .groupSearchEnabled(true)
                .build());
    
        }
    }
    
    resources:
      genericOidc:
        type: rancher2:AuthConfigGenericOidc
        name: generic_oidc
        properties:
          name: genericoidc
          clientId: <GITLAB_APPLICATION_ID>
          clientSecret: <GITLAB_CLIENT_SECRET>
          issuer: https://gitlab.com
          rancherUrl: https://<RANCHER_URL>/verify-auth
          scopes: openid profile email read_api
          groupsField: groups
          groupSearchEnabled: true
    

    Create AuthConfigGenericOidc Resource

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

    Constructor syntax

    new AuthConfigGenericOidc(name: string, args: AuthConfigGenericOidcArgs, opts?: CustomResourceOptions);
    @overload
    def AuthConfigGenericOidc(resource_name: str,
                              args: AuthConfigGenericOidcArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthConfigGenericOidc(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              client_id: Optional[str] = None,
                              rancher_url: Optional[str] = None,
                              issuer: Optional[str] = None,
                              client_secret: Optional[str] = None,
                              group_search_enabled: Optional[bool] = None,
                              jwks_url: Optional[str] = None,
                              auth_endpoint: Optional[str] = None,
                              enabled: Optional[bool] = None,
                              access_mode: Optional[str] = None,
                              groups_field: Optional[str] = None,
                              annotations: Optional[Mapping[str, str]] = None,
                              certificate: Optional[str] = None,
                              labels: Optional[Mapping[str, str]] = None,
                              private_key: Optional[str] = None,
                              allowed_principal_ids: Optional[Sequence[str]] = None,
                              scopes: Optional[str] = None,
                              token_endpoint: Optional[str] = None,
                              userinfo_endpoint: Optional[str] = None)
    func NewAuthConfigGenericOidc(ctx *Context, name string, args AuthConfigGenericOidcArgs, opts ...ResourceOption) (*AuthConfigGenericOidc, error)
    public AuthConfigGenericOidc(string name, AuthConfigGenericOidcArgs args, CustomResourceOptions? opts = null)
    public AuthConfigGenericOidc(String name, AuthConfigGenericOidcArgs args)
    public AuthConfigGenericOidc(String name, AuthConfigGenericOidcArgs args, CustomResourceOptions options)
    
    type: rancher2:AuthConfigGenericOidc
    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 AuthConfigGenericOidcArgs
    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 AuthConfigGenericOidcArgs
    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 AuthConfigGenericOidcArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthConfigGenericOidcArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthConfigGenericOidcArgs
    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 authConfigGenericOidcResource = new Rancher2.AuthConfigGenericOidc("authConfigGenericOidcResource", new()
    {
        ClientId = "string",
        RancherUrl = "string",
        Issuer = "string",
        ClientSecret = "string",
        GroupSearchEnabled = false,
        JwksUrl = "string",
        AuthEndpoint = "string",
        Enabled = false,
        AccessMode = "string",
        GroupsField = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        Certificate = "string",
        Labels = 
        {
            { "string", "string" },
        },
        PrivateKey = "string",
        AllowedPrincipalIds = new[]
        {
            "string",
        },
        Scopes = "string",
        TokenEndpoint = "string",
        UserinfoEndpoint = "string",
    });
    
    example, err := rancher2.NewAuthConfigGenericOidc(ctx, "authConfigGenericOidcResource", &rancher2.AuthConfigGenericOidcArgs{
    	ClientId:           pulumi.String("string"),
    	RancherUrl:         pulumi.String("string"),
    	Issuer:             pulumi.String("string"),
    	ClientSecret:       pulumi.String("string"),
    	GroupSearchEnabled: pulumi.Bool(false),
    	JwksUrl:            pulumi.String("string"),
    	AuthEndpoint:       pulumi.String("string"),
    	Enabled:            pulumi.Bool(false),
    	AccessMode:         pulumi.String("string"),
    	GroupsField:        pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Certificate: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	PrivateKey: pulumi.String("string"),
    	AllowedPrincipalIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Scopes:           pulumi.String("string"),
    	TokenEndpoint:    pulumi.String("string"),
    	UserinfoEndpoint: pulumi.String("string"),
    })
    
    var authConfigGenericOidcResource = new AuthConfigGenericOidc("authConfigGenericOidcResource", AuthConfigGenericOidcArgs.builder()
        .clientId("string")
        .rancherUrl("string")
        .issuer("string")
        .clientSecret("string")
        .groupSearchEnabled(false)
        .jwksUrl("string")
        .authEndpoint("string")
        .enabled(false)
        .accessMode("string")
        .groupsField("string")
        .annotations(Map.of("string", "string"))
        .certificate("string")
        .labels(Map.of("string", "string"))
        .privateKey("string")
        .allowedPrincipalIds("string")
        .scopes("string")
        .tokenEndpoint("string")
        .userinfoEndpoint("string")
        .build());
    
    auth_config_generic_oidc_resource = rancher2.AuthConfigGenericOidc("authConfigGenericOidcResource",
        client_id="string",
        rancher_url="string",
        issuer="string",
        client_secret="string",
        group_search_enabled=False,
        jwks_url="string",
        auth_endpoint="string",
        enabled=False,
        access_mode="string",
        groups_field="string",
        annotations={
            "string": "string",
        },
        certificate="string",
        labels={
            "string": "string",
        },
        private_key="string",
        allowed_principal_ids=["string"],
        scopes="string",
        token_endpoint="string",
        userinfo_endpoint="string")
    
    const authConfigGenericOidcResource = new rancher2.AuthConfigGenericOidc("authConfigGenericOidcResource", {
        clientId: "string",
        rancherUrl: "string",
        issuer: "string",
        clientSecret: "string",
        groupSearchEnabled: false,
        jwksUrl: "string",
        authEndpoint: "string",
        enabled: false,
        accessMode: "string",
        groupsField: "string",
        annotations: {
            string: "string",
        },
        certificate: "string",
        labels: {
            string: "string",
        },
        privateKey: "string",
        allowedPrincipalIds: ["string"],
        scopes: "string",
        tokenEndpoint: "string",
        userinfoEndpoint: "string",
    });
    
    type: rancher2:AuthConfigGenericOidc
    properties:
        accessMode: string
        allowedPrincipalIds:
            - string
        annotations:
            string: string
        authEndpoint: string
        certificate: string
        clientId: string
        clientSecret: string
        enabled: false
        groupSearchEnabled: false
        groupsField: string
        issuer: string
        jwksUrl: string
        labels:
            string: string
        privateKey: string
        rancherUrl: string
        scopes: string
        tokenEndpoint: string
        userinfoEndpoint: string
    

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

    ClientId string
    The OIDC Client ID.
    ClientSecret string
    The OIDC Client Secret.
    Issuer string
    The OIDC issuer URL.
    RancherUrl string
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    AccessMode string
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    AllowedPrincipalIds List<string>
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    Annotations Dictionary<string, string>
    Annotations of the resource (map)
    AuthEndpoint string
    The OIDC Auth Endpoint URL.
    Certificate string
    A PEM-encoded CA certificate for the OIDC provider.
    Enabled bool
    Enable the auth config provider. Default true (bool)
    GroupSearchEnabled bool
    Enable group search. Default false (bool)
    GroupsField string
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    JwksUrl string
    The OIDC JWKS URL.
    Labels Dictionary<string, string>
    Labels of the resource (map)
    PrivateKey string
    A PEM-encoded private key for the OIDC provider.
    Scopes string
    The OIDC scopes to request. Defaults to openid profile email (string)
    TokenEndpoint string
    The OIDC Token Endpoint URL.
    UserinfoEndpoint string
    The OIDC User Info Endpoint URL.
    ClientId string
    The OIDC Client ID.
    ClientSecret string
    The OIDC Client Secret.
    Issuer string
    The OIDC issuer URL.
    RancherUrl string
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    AccessMode string
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    AllowedPrincipalIds []string
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    Annotations map[string]string
    Annotations of the resource (map)
    AuthEndpoint string
    The OIDC Auth Endpoint URL.
    Certificate string
    A PEM-encoded CA certificate for the OIDC provider.
    Enabled bool
    Enable the auth config provider. Default true (bool)
    GroupSearchEnabled bool
    Enable group search. Default false (bool)
    GroupsField string
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    JwksUrl string
    The OIDC JWKS URL.
    Labels map[string]string
    Labels of the resource (map)
    PrivateKey string
    A PEM-encoded private key for the OIDC provider.
    Scopes string
    The OIDC scopes to request. Defaults to openid profile email (string)
    TokenEndpoint string
    The OIDC Token Endpoint URL.
    UserinfoEndpoint string
    The OIDC User Info Endpoint URL.
    clientId String
    The OIDC Client ID.
    clientSecret String
    The OIDC Client Secret.
    issuer String
    The OIDC issuer URL.
    rancherUrl String
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    accessMode String
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowedPrincipalIds List<String>
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations Map<String,String>
    Annotations of the resource (map)
    authEndpoint String
    The OIDC Auth Endpoint URL.
    certificate String
    A PEM-encoded CA certificate for the OIDC provider.
    enabled Boolean
    Enable the auth config provider. Default true (bool)
    groupSearchEnabled Boolean
    Enable group search. Default false (bool)
    groupsField String
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    jwksUrl String
    The OIDC JWKS URL.
    labels Map<String,String>
    Labels of the resource (map)
    privateKey String
    A PEM-encoded private key for the OIDC provider.
    scopes String
    The OIDC scopes to request. Defaults to openid profile email (string)
    tokenEndpoint String
    The OIDC Token Endpoint URL.
    userinfoEndpoint String
    The OIDC User Info Endpoint URL.
    clientId string
    The OIDC Client ID.
    clientSecret string
    The OIDC Client Secret.
    issuer string
    The OIDC issuer URL.
    rancherUrl string
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    accessMode string
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowedPrincipalIds string[]
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations {[key: string]: string}
    Annotations of the resource (map)
    authEndpoint string
    The OIDC Auth Endpoint URL.
    certificate string
    A PEM-encoded CA certificate for the OIDC provider.
    enabled boolean
    Enable the auth config provider. Default true (bool)
    groupSearchEnabled boolean
    Enable group search. Default false (bool)
    groupsField string
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    jwksUrl string
    The OIDC JWKS URL.
    labels {[key: string]: string}
    Labels of the resource (map)
    privateKey string
    A PEM-encoded private key for the OIDC provider.
    scopes string
    The OIDC scopes to request. Defaults to openid profile email (string)
    tokenEndpoint string
    The OIDC Token Endpoint URL.
    userinfoEndpoint string
    The OIDC User Info Endpoint URL.
    client_id str
    The OIDC Client ID.
    client_secret str
    The OIDC Client Secret.
    issuer str
    The OIDC issuer URL.
    rancher_url str
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    access_mode str
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowed_principal_ids Sequence[str]
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations Mapping[str, str]
    Annotations of the resource (map)
    auth_endpoint str
    The OIDC Auth Endpoint URL.
    certificate str
    A PEM-encoded CA certificate for the OIDC provider.
    enabled bool
    Enable the auth config provider. Default true (bool)
    group_search_enabled bool
    Enable group search. Default false (bool)
    groups_field str
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    jwks_url str
    The OIDC JWKS URL.
    labels Mapping[str, str]
    Labels of the resource (map)
    private_key str
    A PEM-encoded private key for the OIDC provider.
    scopes str
    The OIDC scopes to request. Defaults to openid profile email (string)
    token_endpoint str
    The OIDC Token Endpoint URL.
    userinfo_endpoint str
    The OIDC User Info Endpoint URL.
    clientId String
    The OIDC Client ID.
    clientSecret String
    The OIDC Client Secret.
    issuer String
    The OIDC issuer URL.
    rancherUrl String
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    accessMode String
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowedPrincipalIds List<String>
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations Map<String>
    Annotations of the resource (map)
    authEndpoint String
    The OIDC Auth Endpoint URL.
    certificate String
    A PEM-encoded CA certificate for the OIDC provider.
    enabled Boolean
    Enable the auth config provider. Default true (bool)
    groupSearchEnabled Boolean
    Enable group search. Default false (bool)
    groupsField String
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    jwksUrl String
    The OIDC JWKS URL.
    labels Map<String>
    Labels of the resource (map)
    privateKey String
    A PEM-encoded private key for the OIDC provider.
    scopes String
    The OIDC scopes to request. Defaults to openid profile email (string)
    tokenEndpoint String
    The OIDC Token Endpoint URL.
    userinfoEndpoint String
    The OIDC User Info Endpoint URL.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    (Computed) The name of the resource (string)
    Type string
    (Computed) The type of the resource (string)
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    (Computed) The name of the resource (string)
    Type string
    (Computed) The type of the resource (string)
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    (Computed) The name of the resource (string)
    type String
    (Computed) The type of the resource (string)
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    (Computed) The name of the resource (string)
    type string
    (Computed) The type of the resource (string)
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    (Computed) The name of the resource (string)
    type str
    (Computed) The type of the resource (string)
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    (Computed) The name of the resource (string)
    type String
    (Computed) The type of the resource (string)

    Look up Existing AuthConfigGenericOidc Resource

    Get an existing AuthConfigGenericOidc 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?: AuthConfigGenericOidcState, opts?: CustomResourceOptions): AuthConfigGenericOidc
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_mode: Optional[str] = None,
            allowed_principal_ids: Optional[Sequence[str]] = None,
            annotations: Optional[Mapping[str, str]] = None,
            auth_endpoint: Optional[str] = None,
            certificate: Optional[str] = None,
            client_id: Optional[str] = None,
            client_secret: Optional[str] = None,
            enabled: Optional[bool] = None,
            group_search_enabled: Optional[bool] = None,
            groups_field: Optional[str] = None,
            issuer: Optional[str] = None,
            jwks_url: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            private_key: Optional[str] = None,
            rancher_url: Optional[str] = None,
            scopes: Optional[str] = None,
            token_endpoint: Optional[str] = None,
            type: Optional[str] = None,
            userinfo_endpoint: Optional[str] = None) -> AuthConfigGenericOidc
    func GetAuthConfigGenericOidc(ctx *Context, name string, id IDInput, state *AuthConfigGenericOidcState, opts ...ResourceOption) (*AuthConfigGenericOidc, error)
    public static AuthConfigGenericOidc Get(string name, Input<string> id, AuthConfigGenericOidcState? state, CustomResourceOptions? opts = null)
    public static AuthConfigGenericOidc get(String name, Output<String> id, AuthConfigGenericOidcState state, CustomResourceOptions options)
    resources:  _:    type: rancher2:AuthConfigGenericOidc    get:      id: ${id}
    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:
    AccessMode string
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    AllowedPrincipalIds List<string>
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    Annotations Dictionary<string, string>
    Annotations of the resource (map)
    AuthEndpoint string
    The OIDC Auth Endpoint URL.
    Certificate string
    A PEM-encoded CA certificate for the OIDC provider.
    ClientId string
    The OIDC Client ID.
    ClientSecret string
    The OIDC Client Secret.
    Enabled bool
    Enable the auth config provider. Default true (bool)
    GroupSearchEnabled bool
    Enable group search. Default false (bool)
    GroupsField string
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    Issuer string
    The OIDC issuer URL.
    JwksUrl string
    The OIDC JWKS URL.
    Labels Dictionary<string, string>
    Labels of the resource (map)
    Name string
    (Computed) The name of the resource (string)
    PrivateKey string
    A PEM-encoded private key for the OIDC provider.
    RancherUrl string
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    Scopes string
    The OIDC scopes to request. Defaults to openid profile email (string)
    TokenEndpoint string
    The OIDC Token Endpoint URL.
    Type string
    (Computed) The type of the resource (string)
    UserinfoEndpoint string
    The OIDC User Info Endpoint URL.
    AccessMode string
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    AllowedPrincipalIds []string
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    Annotations map[string]string
    Annotations of the resource (map)
    AuthEndpoint string
    The OIDC Auth Endpoint URL.
    Certificate string
    A PEM-encoded CA certificate for the OIDC provider.
    ClientId string
    The OIDC Client ID.
    ClientSecret string
    The OIDC Client Secret.
    Enabled bool
    Enable the auth config provider. Default true (bool)
    GroupSearchEnabled bool
    Enable group search. Default false (bool)
    GroupsField string
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    Issuer string
    The OIDC issuer URL.
    JwksUrl string
    The OIDC JWKS URL.
    Labels map[string]string
    Labels of the resource (map)
    Name string
    (Computed) The name of the resource (string)
    PrivateKey string
    A PEM-encoded private key for the OIDC provider.
    RancherUrl string
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    Scopes string
    The OIDC scopes to request. Defaults to openid profile email (string)
    TokenEndpoint string
    The OIDC Token Endpoint URL.
    Type string
    (Computed) The type of the resource (string)
    UserinfoEndpoint string
    The OIDC User Info Endpoint URL.
    accessMode String
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowedPrincipalIds List<String>
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations Map<String,String>
    Annotations of the resource (map)
    authEndpoint String
    The OIDC Auth Endpoint URL.
    certificate String
    A PEM-encoded CA certificate for the OIDC provider.
    clientId String
    The OIDC Client ID.
    clientSecret String
    The OIDC Client Secret.
    enabled Boolean
    Enable the auth config provider. Default true (bool)
    groupSearchEnabled Boolean
    Enable group search. Default false (bool)
    groupsField String
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    issuer String
    The OIDC issuer URL.
    jwksUrl String
    The OIDC JWKS URL.
    labels Map<String,String>
    Labels of the resource (map)
    name String
    (Computed) The name of the resource (string)
    privateKey String
    A PEM-encoded private key for the OIDC provider.
    rancherUrl String
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    scopes String
    The OIDC scopes to request. Defaults to openid profile email (string)
    tokenEndpoint String
    The OIDC Token Endpoint URL.
    type String
    (Computed) The type of the resource (string)
    userinfoEndpoint String
    The OIDC User Info Endpoint URL.
    accessMode string
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowedPrincipalIds string[]
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations {[key: string]: string}
    Annotations of the resource (map)
    authEndpoint string
    The OIDC Auth Endpoint URL.
    certificate string
    A PEM-encoded CA certificate for the OIDC provider.
    clientId string
    The OIDC Client ID.
    clientSecret string
    The OIDC Client Secret.
    enabled boolean
    Enable the auth config provider. Default true (bool)
    groupSearchEnabled boolean
    Enable group search. Default false (bool)
    groupsField string
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    issuer string
    The OIDC issuer URL.
    jwksUrl string
    The OIDC JWKS URL.
    labels {[key: string]: string}
    Labels of the resource (map)
    name string
    (Computed) The name of the resource (string)
    privateKey string
    A PEM-encoded private key for the OIDC provider.
    rancherUrl string
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    scopes string
    The OIDC scopes to request. Defaults to openid profile email (string)
    tokenEndpoint string
    The OIDC Token Endpoint URL.
    type string
    (Computed) The type of the resource (string)
    userinfoEndpoint string
    The OIDC User Info Endpoint URL.
    access_mode str
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowed_principal_ids Sequence[str]
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations Mapping[str, str]
    Annotations of the resource (map)
    auth_endpoint str
    The OIDC Auth Endpoint URL.
    certificate str
    A PEM-encoded CA certificate for the OIDC provider.
    client_id str
    The OIDC Client ID.
    client_secret str
    The OIDC Client Secret.
    enabled bool
    Enable the auth config provider. Default true (bool)
    group_search_enabled bool
    Enable group search. Default false (bool)
    groups_field str
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    issuer str
    The OIDC issuer URL.
    jwks_url str
    The OIDC JWKS URL.
    labels Mapping[str, str]
    Labels of the resource (map)
    name str
    (Computed) The name of the resource (string)
    private_key str
    A PEM-encoded private key for the OIDC provider.
    rancher_url str
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    scopes str
    The OIDC scopes to request. Defaults to openid profile email (string)
    token_endpoint str
    The OIDC Token Endpoint URL.
    type str
    (Computed) The type of the resource (string)
    userinfo_endpoint str
    The OIDC User Info Endpoint URL.
    accessMode String
    Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
    allowedPrincipalIds List<String>
    Allowed principal IDs for auth. Required if access_mode is required or restricted. Ex: genericoidc_user://<USER_ID> genericoidc_group://<GROUP_ID> (list)
    annotations Map<String>
    Annotations of the resource (map)
    authEndpoint String
    The OIDC Auth Endpoint URL.
    certificate String
    A PEM-encoded CA certificate for the OIDC provider.
    clientId String
    The OIDC Client ID.
    clientSecret String
    The OIDC Client Secret.
    enabled Boolean
    Enable the auth config provider. Default true (bool)
    groupSearchEnabled Boolean
    Enable group search. Default false (bool)
    groupsField String
    The name of the OIDC claim to use for the user's group memberships. Default groups (string)
    issuer String
    The OIDC issuer URL.
    jwksUrl String
    The OIDC JWKS URL.
    labels Map<String>
    Labels of the resource (map)
    name String
    (Computed) The name of the resource (string)
    privateKey String
    A PEM-encoded private key for the OIDC provider.
    rancherUrl String
    The URL of the Rancher server. This is used as the redirect URI for the OIDC provider.
    scopes String
    The OIDC scopes to request. Defaults to openid profile email (string)
    tokenEndpoint String
    The OIDC Token Endpoint URL.
    type String
    (Computed) The type of the resource (string)
    userinfoEndpoint String
    The OIDC User Info Endpoint URL.

    Import

    Generic OIDC auth config can be imported using its name.

    $ pulumi import rancher2:index/authConfigGenericOidc:AuthConfigGenericOidc generic_oidc genericoidc
    

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

    Package Details

    Repository
    Rancher2 pulumi/pulumi-rancher2
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rancher2 Terraform Provider.
    rancher2 logo
    Rancher 2 v11.0.0 published on Wednesday, Dec 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate