published on Thursday, Nov 19, 2026 by Formal
published on Thursday, Nov 19, 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}
terraform {
required_providers {
formal = {
source = "pulumi/formal"
}
}
}
# A public client, such as a desktop app, authenticates with PKCE alone.
resource "formal_oauth_client" "desktop_agent" {
lifecycle {
create_before_destroy = true
}
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_oauth_client" "cloud_agent" {
lifecycle {
create_before_destroy = true
}
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_oauth_client.cloud_agent.id
}
output "cloudAgentClientSecret" {
value = formal_oauth_client.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:
- Redirect
Uris List<string> - Exact redirect URIs the client may use:
https,httpon a loopback host (any port), or a private-use scheme containing a period. - Client
Secret Dictionary<string, string>Rotation Triggers - 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
clientSecretBasicorclientSecretPost. Public clients use PKCE alone. Changing it forces replacement. - Name string
- Name of the client, shown to users on the consent screen.
- Redirect
Uris []string - Exact redirect URIs the client may use:
https,httpon a loopback host (any port), or a private-use scheme containing a period. - Client
Secret map[string]stringRotation Triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - client_
secret_ map(string)rotation_ triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - client
Secret Map<String,String>Rotation Triggers - 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
clientSecretBasicorclientSecretPost. Public clients use PKCE alone. Changing it forces replacement. - name String
- Name of the client, shown to users on the consent screen.
- redirect
Uris string[] - Exact redirect URIs the client may use:
https,httpon a loopback host (any port), or a private-use scheme containing a period. - client
Secret {[key: string]: string}Rotation Triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - client_
secret_ Mapping[str, str]rotation_ triggers - 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
clientSecretBasicorclientSecretPost. Public clients use PKCE alone. Changing it forces replacement. - name str
- Name of the client, shown to users on the consent screen.
- redirect
Uris List<String> - Exact redirect URIs the client may use:
https,httpon a loopback host (any port), or a private-use scheme containing a period. - client
Secret Map<String>Rotation Triggers - 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
clientSecretBasicorclientSecretPost. 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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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) -> OauthClientfunc 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: existingOauthClient: type: formal:OauthClient get: id: ${id}import {
to = formal_oauth_client.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state OauthClientState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state OauthClientState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state OauthClientState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state OauthClientState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- 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 Dictionary<string, string>Rotation Triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - Updated
At 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 map[string]stringRotation Triggers - 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
clientSecretBasicorclientSecretPost. 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 []string - Exact redirect URIs the client may use:
https,httpon a loopback host (any port), or a private-use scheme containing a period. - Updated
At 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_ map(string)rotation_ triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - updated_
at 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 Map<String,String>Rotation Triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - updated
At 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 {[key: string]: string}Rotation Triggers - 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
clientSecretBasicorclientSecretPost. 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 string[] - Exact redirect URIs the client may use:
https,httpon a loopback host (any port), or a private-use scheme containing a period. - updated
At 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_ Mapping[str, str]rotation_ triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - updated_
at str - 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 Map<String>Rotation Triggers - 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
clientSecretBasicorclientSecretPost. 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,httpon a loopback host (any port), or a private-use scheme containing a period. - updated
At 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
formalTerraform Provider.
published on Thursday, Nov 19, 2026 by Formal