1. Registry
  2. Packages
  3. Formal Provider
  4. API Docs
  5. OauthClient
Viewing docs for Formal v1.2.8
published on Friday, Oct 30, 2026 by Formal
formal logo Formal
Viewing docs for Formal v1.2.8
published on Friday, Oct 30, 2026 by Formal

    Registers an OAuth client, such as Cursor or Devin, that signs users in to the organization’s OAuth-enabled Resources (see formal.ResourceOauthSettings) with a static client ID instead of a client ID metadata document. Destroying or replacing it revokes every consent and refresh token issued to the client.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as formal from "@formalco/pulumi";
    
    // A public client, such as a desktop app, authenticates with PKCE alone.
    const desktopAgent = new formal.OauthClient("desktop_agent", {
        name: "Desktop agent",
        redirectUris: [
            "http://127.0.0.1/callback",
            "com.example.agent://oauth/callback",
        ],
    });
    // A confidential client also authenticates with a Formal-generated secret.
    // Change client_secret_rotation_triggers to rotate it.
    const cloudAgent = new formal.OauthClient("cloud_agent", {
        name: "Cloud agent",
        redirectUris: ["https://agent.example.com/oauth/callback"],
        confidential: true,
        clientSecretRotationTriggers: {
            rotated_on: "2026-10-15",
        },
    });
    export const cloudAgentClientId = cloudAgent.id;
    export const cloudAgentClientSecret = cloudAgent.clientSecret;
    
    import pulumi
    import pulumi_formal as formal
    
    # A public client, such as a desktop app, authenticates with PKCE alone.
    desktop_agent = formal.OauthClient("desktop_agent",
        name="Desktop agent",
        redirect_uris=[
            "http://127.0.0.1/callback",
            "com.example.agent://oauth/callback",
        ])
    # A confidential client also authenticates with a Formal-generated secret.
    # Change client_secret_rotation_triggers to rotate it.
    cloud_agent = formal.OauthClient("cloud_agent",
        name="Cloud agent",
        redirect_uris=["https://agent.example.com/oauth/callback"],
        confidential=True,
        client_secret_rotation_triggers={
            "rotated_on": "2026-10-15",
        })
    pulumi.export("cloudAgentClientId", cloud_agent.id)
    pulumi.export("cloudAgentClientSecret", cloud_agent.client_secret)
    
    package main
    
    import (
    	"github.com/formalco/pulumi-formal/sdk/go/formal"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// A public client, such as a desktop app, authenticates with PKCE alone.
    		_, err := formal.NewOauthClient(ctx, "desktop_agent", &formal.OauthClientArgs{
    			Name: pulumi.String("Desktop agent"),
    			RedirectUris: pulumi.StringArray{
    				pulumi.String("http://127.0.0.1/callback"),
    				pulumi.String("com.example.agent://oauth/callback"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// A confidential client also authenticates with a Formal-generated secret.
    		// Change client_secret_rotation_triggers to rotate it.
    		cloudAgent, err := formal.NewOauthClient(ctx, "cloud_agent", &formal.OauthClientArgs{
    			Name: pulumi.String("Cloud agent"),
    			RedirectUris: pulumi.StringArray{
    				pulumi.String("https://agent.example.com/oauth/callback"),
    			},
    			Confidential: pulumi.Bool(true),
    			ClientSecretRotationTriggers: pulumi.StringMap{
    				"rotated_on": pulumi.String("2026-10-15"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("cloudAgentClientId", cloudAgent.ID())
    		ctx.Export("cloudAgentClientSecret", cloudAgent.ClientSecret)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pulumi = Formal.Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        // A public client, such as a desktop app, authenticates with PKCE alone.
        var desktopAgent = new Pulumi.OauthClient("desktop_agent", new()
        {
            Name = "Desktop agent",
            RedirectUris = new[]
            {
                "http://127.0.0.1/callback",
                "com.example.agent://oauth/callback",
            },
        });
    
        // A confidential client also authenticates with a Formal-generated secret.
        // Change client_secret_rotation_triggers to rotate it.
        var cloudAgent = new Pulumi.OauthClient("cloud_agent", new()
        {
            Name = "Cloud agent",
            RedirectUris = new[]
            {
                "https://agent.example.com/oauth/callback",
            },
            Confidential = true,
            ClientSecretRotationTriggers = 
            {
                { "rotated_on", "2026-10-15" },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["cloudAgentClientId"] = cloudAgent.Id,
            ["cloudAgentClientSecret"] = cloudAgent.ClientSecret,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.formal.OauthClient;
    import com.pulumi.formal.OauthClientArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            // A public client, such as a desktop app, authenticates with PKCE alone.
            var desktopAgent = new OauthClient("desktopAgent", OauthClientArgs.builder()
                .name("Desktop agent")
                .redirectUris(            
                    "http://127.0.0.1/callback",
                    "com.example.agent://oauth/callback")
                .build());
    
            // A confidential client also authenticates with a Formal-generated secret.
            // Change client_secret_rotation_triggers to rotate it.
            var cloudAgent = new OauthClient("cloudAgent", OauthClientArgs.builder()
                .name("Cloud agent")
                .redirectUris("https://agent.example.com/oauth/callback")
                .confidential(true)
                .clientSecretRotationTriggers(Map.of("rotated_on", "2026-10-15"))
                .build());
    
            ctx.export("cloudAgentClientId", cloudAgent.id());
            ctx.export("cloudAgentClientSecret", cloudAgent.clientSecret());
        }
    }
    
    resources:
      # A public client, such as a desktop app, authenticates with PKCE alone.
      desktopAgent:
        type: formal:OauthClient
        name: desktop_agent
        properties:
          name: Desktop agent
          redirectUris:
            - http://127.0.0.1/callback
            - com.example.agent://oauth/callback
      # A confidential client also authenticates with a Formal-generated secret.
      # Change client_secret_rotation_triggers to rotate it.
      cloudAgent:
        type: formal:OauthClient
        name: cloud_agent
        properties:
          name: Cloud agent
          redirectUris:
            - https://agent.example.com/oauth/callback
          confidential: true
          clientSecretRotationTriggers:
            rotated_on: 2026-10-15
    outputs:
      cloudAgentClientId: ${cloudAgent.id}
      cloudAgentClientSecret: ${cloudAgent.clientSecret}
    
    pulumi {
      required_providers {
        formal = {
          source = "pulumi/formal"
        }
      }
    }
    
    # A public client, such as a desktop app, authenticates with PKCE alone.
    resource "formal_oauthclient" "desktop_agent" {
      name          = "Desktop agent"
      redirect_uris = ["http://127.0.0.1/callback", "com.example.agent://oauth/callback"]
    }
    # A confidential client also authenticates with a Formal-generated secret.
    # Change client_secret_rotation_triggers to rotate it.
    resource "formal_oauthclient" "cloud_agent" {
      name          = "Cloud agent"
      redirect_uris = ["https://agent.example.com/oauth/callback"]
      confidential  = true
      client_secret_rotation_triggers = {
        "rotated_on" = "2026-10-15"
      }
    }
    output "cloudAgentClientId" {
      value = formal_oauthclient.cloud_agent.id
    }
    output "cloudAgentClientSecret" {
      value = formal_oauthclient.cloud_agent.client_secret
    }
    

    Create OauthClient Resource

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

    Constructor syntax

    new OauthClient(name: string, args: OauthClientArgs, opts?: CustomResourceOptions);
    @overload
    def OauthClient(resource_name: str,
                    args: OauthClientArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def OauthClient(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    redirect_uris: Optional[Sequence[str]] = None,
                    client_secret_rotation_triggers: Optional[Mapping[str, str]] = None,
                    confidential: Optional[bool] = None,
                    name: Optional[str] = None)
    func NewOauthClient(ctx *Context, name string, args OauthClientArgs, opts ...ResourceOption) (*OauthClient, error)
    public OauthClient(string name, OauthClientArgs args, CustomResourceOptions? opts = null)
    public OauthClient(String name, OauthClientArgs args)
    public OauthClient(String name, OauthClientArgs args, CustomResourceOptions options)
    
    type: formal:OauthClient
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "formal_oauth_client" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OauthClientArgs
    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 OauthClientArgs
    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 OauthClientArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OauthClientArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OauthClientArgs
    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 oauthClientResource = new Pulumi.OauthClient("oauthClientResource", new()
    {
        RedirectUris = new[]
        {
            "string",
        },
        ClientSecretRotationTriggers = 
        {
            { "string", "string" },
        },
        Confidential = false,
        Name = "string",
    });
    
    example, err := formal.NewOauthClient(ctx, "oauthClientResource", &formal.OauthClientArgs{
    	RedirectUris: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ClientSecretRotationTriggers: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Confidential: pulumi.Bool(false),
    	Name:         pulumi.String("string"),
    })
    
    resource "formal_oauth_client" "oauthClientResource" {
      lifecycle {
        create_before_destroy = true
      }
      redirect_uris = ["string"]
      client_secret_rotation_triggers = {
        "string" = "string"
      }
      confidential = false
      name         = "string"
    }
    
    var oauthClientResource = new OauthClient("oauthClientResource", OauthClientArgs.builder()
        .redirectUris("string")
        .clientSecretRotationTriggers(Map.of("string", "string"))
        .confidential(false)
        .name("string")
        .build());
    
    oauth_client_resource = formal.OauthClient("oauthClientResource",
        redirect_uris=["string"],
        client_secret_rotation_triggers={
            "string": "string",
        },
        confidential=False,
        name="string")
    
    const oauthClientResource = new formal.OauthClient("oauthClientResource", {
        redirectUris: ["string"],
        clientSecretRotationTriggers: {
            string: "string",
        },
        confidential: false,
        name: "string",
    });
    
    type: formal:OauthClient
    properties:
        clientSecretRotationTriggers:
            string: string
        confidential: false
        name: string
        redirectUris:
            - string
    

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

    RedirectUris List<string>
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    ClientSecretRotationTriggers Dictionary<string, string>
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    Confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    Name string
    Name of the client, shown to users on the consent screen.
    RedirectUris []string
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    ClientSecretRotationTriggers map[string]string
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    Confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    Name string
    Name of the client, shown to users on the consent screen.
    redirect_uris list(string)
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    client_secret_rotation_triggers map(string)
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    name string
    Name of the client, shown to users on the consent screen.
    redirectUris List<String>
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    clientSecretRotationTriggers Map<String,String>
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential Boolean
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    name String
    Name of the client, shown to users on the consent screen.
    redirectUris string[]
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    clientSecretRotationTriggers {[key: string]: string}
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential boolean
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    name string
    Name of the client, shown to users on the consent screen.
    redirect_uris Sequence[str]
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    client_secret_rotation_triggers Mapping[str, str]
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    name str
    Name of the client, shown to users on the consent screen.
    redirectUris List<String>
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    clientSecretRotationTriggers Map<String>
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential Boolean
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    name String
    Name of the client, shown to users on the consent screen.

    Outputs

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

    ClientSecret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    CreatedAt string
    When the client was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    When the client was last updated.
    ClientSecret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    CreatedAt string
    When the client was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    When the client was last updated.
    client_secret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    created_at string
    When the client was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    When the client was last updated.
    clientSecret String
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    createdAt String
    When the client was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    When the client was last updated.
    clientSecret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    createdAt string
    When the client was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    When the client was last updated.
    client_secret str
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    created_at str
    When the client was created.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    When the client was last updated.
    clientSecret String
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    createdAt String
    When the client was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    When the client was last updated.

    Look up Existing OauthClient Resource

    Get an existing OauthClient 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?: OauthClientState, opts?: CustomResourceOptions): OauthClient
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_secret: Optional[str] = None,
            client_secret_rotation_triggers: Optional[Mapping[str, str]] = None,
            confidential: Optional[bool] = None,
            created_at: Optional[str] = None,
            name: Optional[str] = None,
            redirect_uris: Optional[Sequence[str]] = None,
            updated_at: Optional[str] = None) -> OauthClient
    func GetOauthClient(ctx *Context, name string, id IDInput, state *OauthClientState, opts ...ResourceOption) (*OauthClient, error)
    public static OauthClient Get(string name, Input<string> id, OauthClientState? state, CustomResourceOptions? opts = null)
    public static OauthClient get(String name, Output<String> id, OauthClientState state, CustomResourceOptions options)
    resources:  _:    type: formal:OauthClient    get:      id: ${id}
    import {
      to = formal_oauth_client.example
      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:
    ClientSecret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    ClientSecretRotationTriggers Dictionary<string, string>
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    Confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    CreatedAt string
    When the client was created.
    Name string
    Name of the client, shown to users on the consent screen.
    RedirectUris List<string>
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    UpdatedAt string
    When the client was last updated.
    ClientSecret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    ClientSecretRotationTriggers map[string]string
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    Confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    CreatedAt string
    When the client was created.
    Name string
    Name of the client, shown to users on the consent screen.
    RedirectUris []string
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    UpdatedAt string
    When the client was last updated.
    client_secret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    client_secret_rotation_triggers map(string)
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    created_at string
    When the client was created.
    name string
    Name of the client, shown to users on the consent screen.
    redirect_uris list(string)
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    updated_at string
    When the client was last updated.
    clientSecret String
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    clientSecretRotationTriggers Map<String,String>
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential Boolean
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    createdAt String
    When the client was created.
    name String
    Name of the client, shown to users on the consent screen.
    redirectUris List<String>
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    updatedAt String
    When the client was last updated.
    clientSecret string
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    clientSecretRotationTriggers {[key: string]: string}
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential boolean
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    createdAt string
    When the client was created.
    name string
    Name of the client, shown to users on the consent screen.
    redirectUris string[]
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    updatedAt string
    When the client was last updated.
    client_secret str
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    client_secret_rotation_triggers Mapping[str, str]
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential bool
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    created_at str
    When the client was created.
    name str
    Name of the client, shown to users on the consent screen.
    redirect_uris Sequence[str]
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    updated_at str
    When the client was last updated.
    clientSecret String
    The client secret of a confidential client. The API returns it only when the client is created or its secret is rotated, so it is empty after import, and it is not stored when the provider sets retrieveSensitiveValues = false.
    clientSecretRotationTriggers Map<String>
    Arbitrary map of values that, when changed, rotates the secret of a confidential client. The old secret stops working immediately; existing grants are kept. Adding the map, for example after an import, or removing it doesn't rotate the secret.
    confidential Boolean
    Whether the client is confidential and authenticates with a Formal-generated secret, using clientSecretBasic or clientSecretPost. Public clients use PKCE alone. Changing it forces replacement.
    createdAt String
    When the client was created.
    name String
    Name of the client, shown to users on the consent screen.
    redirectUris List<String>
    Exact redirect URIs the client may use: https, http on a loopback host (any port), or a private-use scheme containing a period.
    updatedAt String
    When the client was last updated.

    Import

    The pulumi import command can be used, for example:

    The client secret is only returned at creation or rotation, so clientSecret is empty after import until the next rotation.

    $ pulumi import formal:index/oauthClient:OauthClient cloud_agent <client_id>
    

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

    Package Details

    Repository
    formal formalco/pulumi-formal
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the formal Terraform Provider.
    formal logo Formal
    Viewing docs for Formal v1.2.8
    published on Friday, Oct 30, 2026 by Formal

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial