TenantOauthIdpConfigArgs

data class TenantOauthIdpConfigArgs(val clientId: Output<String>? = null, val clientSecret: Output<String>? = null, val displayName: Output<String>? = null, val enabled: Output<Boolean>? = null, val issuer: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val tenant: Output<String>? = null) : ConvertibleToJava<TenantOauthIdpConfigArgs>

OIDC IdP configuration for a Identity Toolkit project within a tenant. You must enable the Google Identity Platform in the marketplace prior to using this resource.

Example Usage

Identity Platform Tenant Oauth Idp Config Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.identityplatform.Tenant;
import com.pulumi.gcp.identityplatform.TenantArgs;
import com.pulumi.gcp.identityplatform.TenantOauthIdpConfig;
import com.pulumi.gcp.identityplatform.TenantOauthIdpConfigArgs;
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 tenant = new Tenant("tenant", TenantArgs.builder()
.displayName("tenant")
.build());
var tenantOauthIdpConfig = new TenantOauthIdpConfig("tenantOauthIdpConfig", TenantOauthIdpConfigArgs.builder()
.tenant(tenant.name())
.displayName("Display Name")
.clientId("client-id")
.issuer("issuer")
.enabled(true)
.clientSecret("secret")
.build());
}
}

Import

TenantOauthIdpConfig can be imported using any of these accepted formats

$ pulumi import gcp:identityplatform/tenantOauthIdpConfig:TenantOauthIdpConfig default projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}
$ pulumi import gcp:identityplatform/tenantOauthIdpConfig:TenantOauthIdpConfig default {{project}}/{{tenant}}/{{name}}
$ pulumi import gcp:identityplatform/tenantOauthIdpConfig:TenantOauthIdpConfig default {{tenant}}/{{name}}

Constructors

Link copied to clipboard
constructor(clientId: Output<String>? = null, clientSecret: Output<String>? = null, displayName: Output<String>? = null, enabled: Output<Boolean>? = null, issuer: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, tenant: Output<String>? = null)

Properties

Link copied to clipboard
val clientId: Output<String>? = null

The client id of an OAuth client.

Link copied to clipboard
val clientSecret: Output<String>? = null

The client secret of the OAuth client, to enable OIDC code flow.

Link copied to clipboard
val displayName: Output<String>? = null

Human friendly display name.

Link copied to clipboard
val enabled: Output<Boolean>? = null

If this config allows users to sign in with the provider.

Link copied to clipboard
val issuer: Output<String>? = null

For OIDC Idps, the issuer identifier.

Link copied to clipboard
val name: Output<String>? = null

The name of the OauthIdpConfig. Must start with oidc..

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val tenant: Output<String>? = null

The name of the tenant where this OIDC IDP configuration resource exists

Functions

Link copied to clipboard
open override fun toJava(): TenantOauthIdpConfigArgs