published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
OAuth Client ReadOAuth Client Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleOauthClient = new cloudflare.OauthClient("example_oauth_client", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
clientName: "My OAuth App",
grantTypes: [
"authorization_code",
"refresh_token",
],
redirectUris: ["https://example.com/callback"],
responseTypes: ["code"],
scopes: ["account.read"],
tokenEndpointAuthMethod: "client_secret_post",
allowedCorsOrigins: ["https://example.com"],
clientUri: "https://example.com",
logoUri: "https://example.com/logo.png",
policyUri: "https://example.com/privacy",
postLogoutRedirectUris: ["https://example.com/logout"],
tosUri: "https://example.com/tos",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_oauth_client = cloudflare.OauthClient("example_oauth_client",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
client_name="My OAuth App",
grant_types=[
"authorization_code",
"refresh_token",
],
redirect_uris=["https://example.com/callback"],
response_types=["code"],
scopes=["account.read"],
token_endpoint_auth_method="client_secret_post",
allowed_cors_origins=["https://example.com"],
client_uri="https://example.com",
logo_uri="https://example.com/logo.png",
policy_uri="https://example.com/privacy",
post_logout_redirect_uris=["https://example.com/logout"],
tos_uri="https://example.com/tos")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewOauthClient(ctx, "example_oauth_client", &cloudflare.OauthClientArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
ClientName: pulumi.String("My OAuth App"),
GrantTypes: pulumi.StringArray{
pulumi.String("authorization_code"),
pulumi.String("refresh_token"),
},
RedirectUris: pulumi.StringArray{
pulumi.String("https://example.com/callback"),
},
ResponseTypes: pulumi.StringArray{
pulumi.String("code"),
},
Scopes: pulumi.StringArray{
pulumi.String("account.read"),
},
TokenEndpointAuthMethod: pulumi.String("client_secret_post"),
AllowedCorsOrigins: pulumi.StringArray{
pulumi.String("https://example.com"),
},
ClientUri: pulumi.String("https://example.com"),
LogoUri: pulumi.String("https://example.com/logo.png"),
PolicyUri: pulumi.String("https://example.com/privacy"),
PostLogoutRedirectUris: pulumi.StringArray{
pulumi.String("https://example.com/logout"),
},
TosUri: pulumi.String("https://example.com/tos"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleOauthClient = new Cloudflare.OauthClient("example_oauth_client", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
ClientName = "My OAuth App",
GrantTypes = new[]
{
"authorization_code",
"refresh_token",
},
RedirectUris = new[]
{
"https://example.com/callback",
},
ResponseTypes = new[]
{
"code",
},
Scopes = new[]
{
"account.read",
},
TokenEndpointAuthMethod = "client_secret_post",
AllowedCorsOrigins = new[]
{
"https://example.com",
},
ClientUri = "https://example.com",
LogoUri = "https://example.com/logo.png",
PolicyUri = "https://example.com/privacy",
PostLogoutRedirectUris = new[]
{
"https://example.com/logout",
},
TosUri = "https://example.com/tos",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.OauthClient;
import com.pulumi.cloudflare.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) {
var exampleOauthClient = new OauthClient("exampleOauthClient", OauthClientArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.clientName("My OAuth App")
.grantTypes(
"authorization_code",
"refresh_token")
.redirectUris("https://example.com/callback")
.responseTypes("code")
.scopes("account.read")
.tokenEndpointAuthMethod("client_secret_post")
.allowedCorsOrigins("https://example.com")
.clientUri("https://example.com")
.logoUri("https://example.com/logo.png")
.policyUri("https://example.com/privacy")
.postLogoutRedirectUris("https://example.com/logout")
.tosUri("https://example.com/tos")
.build());
}
}
resources:
exampleOauthClient:
type: cloudflare:OauthClient
name: example_oauth_client
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
clientName: My OAuth App
grantTypes:
- authorization_code
- refresh_token
redirectUris:
- https://example.com/callback
responseTypes:
- code
scopes:
- account.read
tokenEndpointAuthMethod: client_secret_post
allowedCorsOrigins:
- https://example.com
clientUri: https://example.com
logoUri: https://example.com/logo.png
policyUri: https://example.com/privacy
postLogoutRedirectUris:
- https://example.com/logout
tosUri: https://example.com/tos
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_oauthclient" "example_oauth_client" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
client_name = "My OAuth App"
grant_types = ["authorization_code", "refresh_token"]
redirect_uris = ["https://example.com/callback"]
response_types = ["code"]
scopes = ["account.read"]
token_endpoint_auth_method = "client_secret_post"
allowed_cors_origins = ["https://example.com"]
client_uri = "https://example.com"
logo_uri = "https://example.com/logo.png"
policy_uri = "https://example.com/privacy"
post_logout_redirect_uris = ["https://example.com/logout"]
tos_uri = "https://example.com/tos"
}
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,
token_endpoint_auth_method: Optional[str] = None,
client_name: Optional[str] = None,
account_id: Optional[str] = None,
grant_types: Optional[Sequence[str]] = None,
scopes: Optional[Sequence[str]] = None,
response_types: Optional[Sequence[str]] = None,
client_uri: Optional[str] = None,
post_logout_redirect_uris: Optional[Sequence[str]] = None,
policy_uri: Optional[str] = None,
oauth_client_id: Optional[str] = None,
logo_uri: Optional[str] = None,
allowed_cors_origins: Optional[Sequence[str]] = None,
tos_uri: Optional[str] = None,
visibility: 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: cloudflare:OauthClient
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_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 Cloudflare.OauthClient("oauthClientResource", new()
{
RedirectUris = new[]
{
"string",
},
TokenEndpointAuthMethod = "string",
ClientName = "string",
AccountId = "string",
GrantTypes = new[]
{
"string",
},
Scopes = new[]
{
"string",
},
ResponseTypes = new[]
{
"string",
},
ClientUri = "string",
PostLogoutRedirectUris = new[]
{
"string",
},
PolicyUri = "string",
OauthClientId = "string",
LogoUri = "string",
AllowedCorsOrigins = new[]
{
"string",
},
TosUri = "string",
Visibility = "string",
});
example, err := cloudflare.NewOauthClient(ctx, "oauthClientResource", &cloudflare.OauthClientArgs{
RedirectUris: pulumi.StringArray{
pulumi.String("string"),
},
TokenEndpointAuthMethod: pulumi.String("string"),
ClientName: pulumi.String("string"),
AccountId: pulumi.String("string"),
GrantTypes: pulumi.StringArray{
pulumi.String("string"),
},
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
ResponseTypes: pulumi.StringArray{
pulumi.String("string"),
},
ClientUri: pulumi.String("string"),
PostLogoutRedirectUris: pulumi.StringArray{
pulumi.String("string"),
},
PolicyUri: pulumi.String("string"),
OauthClientId: pulumi.String("string"),
LogoUri: pulumi.String("string"),
AllowedCorsOrigins: pulumi.StringArray{
pulumi.String("string"),
},
TosUri: pulumi.String("string"),
Visibility: pulumi.String("string"),
})
resource "cloudflare_oauth_client" "oauthClientResource" {
lifecycle {
create_before_destroy = true
}
redirect_uris = ["string"]
token_endpoint_auth_method = "string"
client_name = "string"
account_id = "string"
grant_types = ["string"]
scopes = ["string"]
response_types = ["string"]
client_uri = "string"
post_logout_redirect_uris = ["string"]
policy_uri = "string"
oauth_client_id = "string"
logo_uri = "string"
allowed_cors_origins = ["string"]
tos_uri = "string"
visibility = "string"
}
var oauthClientResource = new OauthClient("oauthClientResource", OauthClientArgs.builder()
.redirectUris("string")
.tokenEndpointAuthMethod("string")
.clientName("string")
.accountId("string")
.grantTypes("string")
.scopes("string")
.responseTypes("string")
.clientUri("string")
.postLogoutRedirectUris("string")
.policyUri("string")
.oauthClientId("string")
.logoUri("string")
.allowedCorsOrigins("string")
.tosUri("string")
.visibility("string")
.build());
oauth_client_resource = cloudflare.OauthClient("oauthClientResource",
redirect_uris=["string"],
token_endpoint_auth_method="string",
client_name="string",
account_id="string",
grant_types=["string"],
scopes=["string"],
response_types=["string"],
client_uri="string",
post_logout_redirect_uris=["string"],
policy_uri="string",
oauth_client_id="string",
logo_uri="string",
allowed_cors_origins=["string"],
tos_uri="string",
visibility="string")
const oauthClientResource = new cloudflare.OauthClient("oauthClientResource", {
redirectUris: ["string"],
tokenEndpointAuthMethod: "string",
clientName: "string",
accountId: "string",
grantTypes: ["string"],
scopes: ["string"],
responseTypes: ["string"],
clientUri: "string",
postLogoutRedirectUris: ["string"],
policyUri: "string",
oauthClientId: "string",
logoUri: "string",
allowedCorsOrigins: ["string"],
tosUri: "string",
visibility: "string",
});
type: cloudflare:OauthClient
properties:
accountId: string
allowedCorsOrigins:
- string
clientName: string
clientUri: string
grantTypes:
- string
logoUri: string
oauthClientId: string
policyUri: string
postLogoutRedirectUris:
- string
redirectUris:
- string
responseTypes:
- string
scopes:
- string
tokenEndpointAuthMethod: string
tosUri: string
visibility: 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:
- Account
Id string - Account identifier tag.
- Client
Name string - Human-readable name of the OAuth client.
- Grant
Types List<string> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - Redirect
Uris List<string> - Array of allowed redirect URIs for the client.
- Response
Types List<string> - Array of OAuth response types the client is allowed to use.
- Scopes List<string>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - Token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- Allowed
Cors List<string>Origins - Array of allowed CORS origins.
- Client
Uri string - URL of the home page of the client.
- Logo
Uri string - URL of the client's logo.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- Policy
Uri string - URL that points to a privacy policy document.
- Post
Logout List<string>Redirect Uris - Array of allowed post-logout redirect URIs.
- Tos
Uri string - URL that points to a terms of service document.
- Visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- Account
Id string - Account identifier tag.
- Client
Name string - Human-readable name of the OAuth client.
- Grant
Types []string - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - Redirect
Uris []string - Array of allowed redirect URIs for the client.
- Response
Types []string - Array of OAuth response types the client is allowed to use.
- Scopes []string
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - Token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- Allowed
Cors []stringOrigins - Array of allowed CORS origins.
- Client
Uri string - URL of the home page of the client.
- Logo
Uri string - URL of the client's logo.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- Policy
Uri string - URL that points to a privacy policy document.
- Post
Logout []stringRedirect Uris - Array of allowed post-logout redirect URIs.
- Tos
Uri string - URL that points to a terms of service document.
- Visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account_
id string - Account identifier tag.
- client_
name string - Human-readable name of the OAuth client.
- grant_
types list(string) - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - redirect_
uris list(string) - Array of allowed redirect URIs for the client.
- response_
types list(string) - Array of OAuth response types the client is allowed to use.
- scopes list(string)
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token_
endpoint_ stringauth_ method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- allowed_
cors_ list(string)origins - Array of allowed CORS origins.
- client_
uri string - URL of the home page of the client.
- logo_
uri string - URL of the client's logo.
- oauth_
client_ stringid - The unique identifier for an OAuth client.
- policy_
uri string - URL that points to a privacy policy document.
- post_
logout_ list(string)redirect_ uris - Array of allowed post-logout redirect URIs.
- tos_
uri string - URL that points to a terms of service document.
- visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account
Id String - Account identifier tag.
- client
Name String - Human-readable name of the OAuth client.
- grant
Types List<String> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - redirect
Uris List<String> - Array of allowed redirect URIs for the client.
- response
Types List<String> - Array of OAuth response types the client is allowed to use.
- scopes List<String>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint StringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- allowed
Cors List<String>Origins - Array of allowed CORS origins.
- client
Uri String - URL of the home page of the client.
- logo
Uri String - URL of the client's logo.
- oauth
Client StringId - The unique identifier for an OAuth client.
- policy
Uri String - URL that points to a privacy policy document.
- post
Logout List<String>Redirect Uris - Array of allowed post-logout redirect URIs.
- tos
Uri String - URL that points to a terms of service document.
- visibility String
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account
Id string - Account identifier tag.
- client
Name string - Human-readable name of the OAuth client.
- grant
Types string[] - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - redirect
Uris string[] - Array of allowed redirect URIs for the client.
- response
Types string[] - Array of OAuth response types the client is allowed to use.
- scopes string[]
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- allowed
Cors string[]Origins - Array of allowed CORS origins.
- client
Uri string - URL of the home page of the client.
- logo
Uri string - URL of the client's logo.
- oauth
Client stringId - The unique identifier for an OAuth client.
- policy
Uri string - URL that points to a privacy policy document.
- post
Logout string[]Redirect Uris - Array of allowed post-logout redirect URIs.
- tos
Uri string - URL that points to a terms of service document.
- visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account_
id str - Account identifier tag.
- client_
name str - Human-readable name of the OAuth client.
- grant_
types Sequence[str] - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - redirect_
uris Sequence[str] - Array of allowed redirect URIs for the client.
- response_
types Sequence[str] - Array of OAuth response types the client is allowed to use.
- scopes Sequence[str]
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token_
endpoint_ strauth_ method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- allowed_
cors_ Sequence[str]origins - Array of allowed CORS origins.
- client_
uri str - URL of the home page of the client.
- logo_
uri str - URL of the client's logo.
- oauth_
client_ strid - The unique identifier for an OAuth client.
- policy_
uri str - URL that points to a privacy policy document.
- post_
logout_ Sequence[str]redirect_ uris - Array of allowed post-logout redirect URIs.
- tos_
uri str - URL that points to a terms of service document.
- visibility str
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account
Id String - Account identifier tag.
- client
Name String - Human-readable name of the OAuth client.
- grant
Types List<String> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - redirect
Uris List<String> - Array of allowed redirect URIs for the client.
- response
Types List<String> - Array of OAuth response types the client is allowed to use.
- scopes List<String>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint StringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- allowed
Cors List<String>Origins - Array of allowed CORS origins.
- client
Uri String - URL of the home page of the client.
- logo
Uri String - URL of the client's logo.
- oauth
Client StringId - The unique identifier for an OAuth client.
- policy
Uri String - URL that points to a privacy policy document.
- post
Logout List<String>Redirect Uris - Array of allowed post-logout redirect URIs.
- tos
Uri String - URL that points to a terms of service document.
- visibility String
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
Outputs
All input properties are implicitly available as output properties. Additionally, the OauthClient resource produces the following output properties:
- Client
Id string - The unique identifier for an OAuth client.
- Client
Secret string - The client secret. This is the only time the secret is returned in a response.
- Client
Uri OauthVerification Client Client Uri Verification - Client URI domain control verification state.
- Created
At string - Timestamp when the OAuth client was created.
- Has
Rotated boolSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- Updated
At string - Timestamp when the OAuth client was last updated.
- Client
Id string - The unique identifier for an OAuth client.
- Client
Secret string - The client secret. This is the only time the secret is returned in a response.
- Client
Uri OauthVerification Client Client Uri Verification - Client URI domain control verification state.
- Created
At string - Timestamp when the OAuth client was created.
- Has
Rotated boolSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- Updated
At string - Timestamp when the OAuth client was last updated.
- client_
id string - The unique identifier for an OAuth client.
- client_
secret string - The client secret. This is the only time the secret is returned in a response.
- client_
uri_ objectverification - Client URI domain control verification state.
- created_
at string - Timestamp when the OAuth client was created.
- has_
rotated_ boolsecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- promoted_
at string - Timestamp when the OAuth client was promoted to public visibility.
- updated_
at string - Timestamp when the OAuth client was last updated.
- client
Id String - The unique identifier for an OAuth client.
- client
Secret String - The client secret. This is the only time the secret is returned in a response.
- client
Uri OauthVerification Client Client Uri Verification - Client URI domain control verification state.
- created
At String - Timestamp when the OAuth client was created.
- has
Rotated BooleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- promoted
At String - Timestamp when the OAuth client was promoted to public visibility.
- updated
At String - Timestamp when the OAuth client was last updated.
- client
Id string - The unique identifier for an OAuth client.
- client
Secret string - The client secret. This is the only time the secret is returned in a response.
- client
Uri OauthVerification Client Client Uri Verification - Client URI domain control verification state.
- created
At string - Timestamp when the OAuth client was created.
- has
Rotated booleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- updated
At string - Timestamp when the OAuth client was last updated.
- client_
id str - The unique identifier for an OAuth client.
- client_
secret str - The client secret. This is the only time the secret is returned in a response.
- client_
uri_ Oauthverification Client Client Uri Verification - Client URI domain control verification state.
- created_
at str - Timestamp when the OAuth client was created.
- has_
rotated_ boolsecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id str
- The provider-assigned unique ID for this managed resource.
- promoted_
at str - Timestamp when the OAuth client was promoted to public visibility.
- updated_
at str - Timestamp when the OAuth client was last updated.
- client
Id String - The unique identifier for an OAuth client.
- client
Secret String - The client secret. This is the only time the secret is returned in a response.
- client
Uri Property MapVerification - Client URI domain control verification state.
- created
At String - Timestamp when the OAuth client was created.
- has
Rotated BooleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- promoted
At String - Timestamp when the OAuth client was promoted to public visibility.
- updated
At String - Timestamp when the OAuth 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,
account_id: Optional[str] = None,
allowed_cors_origins: Optional[Sequence[str]] = None,
client_id: Optional[str] = None,
client_name: Optional[str] = None,
client_secret: Optional[str] = None,
client_uri: Optional[str] = None,
client_uri_verification: Optional[OauthClientClientUriVerificationArgs] = None,
created_at: Optional[str] = None,
grant_types: Optional[Sequence[str]] = None,
has_rotated_secret: Optional[bool] = None,
logo_uri: Optional[str] = None,
oauth_client_id: Optional[str] = None,
policy_uri: Optional[str] = None,
post_logout_redirect_uris: Optional[Sequence[str]] = None,
promoted_at: Optional[str] = None,
redirect_uris: Optional[Sequence[str]] = None,
response_types: Optional[Sequence[str]] = None,
scopes: Optional[Sequence[str]] = None,
token_endpoint_auth_method: Optional[str] = None,
tos_uri: Optional[str] = None,
updated_at: Optional[str] = None,
visibility: 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: _: type: cloudflare:OauthClient get: id: ${id}import {
to = cloudflare_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.
- Account
Id string - Account identifier tag.
- Allowed
Cors List<string>Origins - Array of allowed CORS origins.
- Client
Id string - The unique identifier for an OAuth client.
- Client
Name string - Human-readable name of the OAuth client.
- Client
Secret string - The client secret. This is the only time the secret is returned in a response.
- Client
Uri string - URL of the home page of the client.
- Client
Uri OauthVerification Client Client Uri Verification - Client URI domain control verification state.
- Created
At string - Timestamp when the OAuth client was created.
- Grant
Types List<string> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - Has
Rotated boolSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- Logo
Uri string - URL of the client's logo.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- Policy
Uri string - URL that points to a privacy policy document.
- Post
Logout List<string>Redirect Uris - Array of allowed post-logout redirect URIs.
- Promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- Redirect
Uris List<string> - Array of allowed redirect URIs for the client.
- Response
Types List<string> - Array of OAuth response types the client is allowed to use.
- Scopes List<string>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - Token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- Tos
Uri string - URL that points to a terms of service document.
- Updated
At string - Timestamp when the OAuth client was last updated.
- Visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- Account
Id string - Account identifier tag.
- Allowed
Cors []stringOrigins - Array of allowed CORS origins.
- Client
Id string - The unique identifier for an OAuth client.
- Client
Name string - Human-readable name of the OAuth client.
- Client
Secret string - The client secret. This is the only time the secret is returned in a response.
- Client
Uri string - URL of the home page of the client.
- Client
Uri OauthVerification Client Client Uri Verification Args - Client URI domain control verification state.
- Created
At string - Timestamp when the OAuth client was created.
- Grant
Types []string - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - Has
Rotated boolSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- Logo
Uri string - URL of the client's logo.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- Policy
Uri string - URL that points to a privacy policy document.
- Post
Logout []stringRedirect Uris - Array of allowed post-logout redirect URIs.
- Promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- Redirect
Uris []string - Array of allowed redirect URIs for the client.
- Response
Types []string - Array of OAuth response types the client is allowed to use.
- Scopes []string
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - Token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- Tos
Uri string - URL that points to a terms of service document.
- Updated
At string - Timestamp when the OAuth client was last updated.
- Visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account_
id string - Account identifier tag.
- allowed_
cors_ list(string)origins - Array of allowed CORS origins.
- client_
id string - The unique identifier for an OAuth client.
- client_
name string - Human-readable name of the OAuth client.
- client_
secret string - The client secret. This is the only time the secret is returned in a response.
- client_
uri string - URL of the home page of the client.
- client_
uri_ objectverification - Client URI domain control verification state.
- created_
at string - Timestamp when the OAuth client was created.
- grant_
types list(string) - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has_
rotated_ boolsecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- logo_
uri string - URL of the client's logo.
- oauth_
client_ stringid - The unique identifier for an OAuth client.
- policy_
uri string - URL that points to a privacy policy document.
- post_
logout_ list(string)redirect_ uris - Array of allowed post-logout redirect URIs.
- promoted_
at string - Timestamp when the OAuth client was promoted to public visibility.
- redirect_
uris list(string) - Array of allowed redirect URIs for the client.
- response_
types list(string) - Array of OAuth response types the client is allowed to use.
- scopes list(string)
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token_
endpoint_ stringauth_ method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos_
uri string - URL that points to a terms of service document.
- updated_
at string - Timestamp when the OAuth client was last updated.
- visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account
Id String - Account identifier tag.
- allowed
Cors List<String>Origins - Array of allowed CORS origins.
- client
Id String - The unique identifier for an OAuth client.
- client
Name String - Human-readable name of the OAuth client.
- client
Secret String - The client secret. This is the only time the secret is returned in a response.
- client
Uri String - URL of the home page of the client.
- client
Uri OauthVerification Client Client Uri Verification - Client URI domain control verification state.
- created
At String - Timestamp when the OAuth client was created.
- grant
Types List<String> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has
Rotated BooleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- logo
Uri String - URL of the client's logo.
- oauth
Client StringId - The unique identifier for an OAuth client.
- policy
Uri String - URL that points to a privacy policy document.
- post
Logout List<String>Redirect Uris - Array of allowed post-logout redirect URIs.
- promoted
At String - Timestamp when the OAuth client was promoted to public visibility.
- redirect
Uris List<String> - Array of allowed redirect URIs for the client.
- response
Types List<String> - Array of OAuth response types the client is allowed to use.
- scopes List<String>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint StringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos
Uri String - URL that points to a terms of service document.
- updated
At String - Timestamp when the OAuth client was last updated.
- visibility String
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account
Id string - Account identifier tag.
- allowed
Cors string[]Origins - Array of allowed CORS origins.
- client
Id string - The unique identifier for an OAuth client.
- client
Name string - Human-readable name of the OAuth client.
- client
Secret string - The client secret. This is the only time the secret is returned in a response.
- client
Uri string - URL of the home page of the client.
- client
Uri OauthVerification Client Client Uri Verification - Client URI domain control verification state.
- created
At string - Timestamp when the OAuth client was created.
- grant
Types string[] - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has
Rotated booleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- logo
Uri string - URL of the client's logo.
- oauth
Client stringId - The unique identifier for an OAuth client.
- policy
Uri string - URL that points to a privacy policy document.
- post
Logout string[]Redirect Uris - Array of allowed post-logout redirect URIs.
- promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- redirect
Uris string[] - Array of allowed redirect URIs for the client.
- response
Types string[] - Array of OAuth response types the client is allowed to use.
- scopes string[]
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos
Uri string - URL that points to a terms of service document.
- updated
At string - Timestamp when the OAuth client was last updated.
- visibility string
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account_
id str - Account identifier tag.
- allowed_
cors_ Sequence[str]origins - Array of allowed CORS origins.
- client_
id str - The unique identifier for an OAuth client.
- client_
name str - Human-readable name of the OAuth client.
- client_
secret str - The client secret. This is the only time the secret is returned in a response.
- client_
uri str - URL of the home page of the client.
- client_
uri_ Oauthverification Client Client Uri Verification Args - Client URI domain control verification state.
- created_
at str - Timestamp when the OAuth client was created.
- grant_
types Sequence[str] - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has_
rotated_ boolsecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- logo_
uri str - URL of the client's logo.
- oauth_
client_ strid - The unique identifier for an OAuth client.
- policy_
uri str - URL that points to a privacy policy document.
- post_
logout_ Sequence[str]redirect_ uris - Array of allowed post-logout redirect URIs.
- promoted_
at str - Timestamp when the OAuth client was promoted to public visibility.
- redirect_
uris Sequence[str] - Array of allowed redirect URIs for the client.
- response_
types Sequence[str] - Array of OAuth response types the client is allowed to use.
- scopes Sequence[str]
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token_
endpoint_ strauth_ method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos_
uri str - URL that points to a terms of service document.
- updated_
at str - Timestamp when the OAuth client was last updated.
- visibility str
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
- account
Id String - Account identifier tag.
- allowed
Cors List<String>Origins - Array of allowed CORS origins.
- client
Id String - The unique identifier for an OAuth client.
- client
Name String - Human-readable name of the OAuth client.
- client
Secret String - The client secret. This is the only time the secret is returned in a response.
- client
Uri String - URL of the home page of the client.
- client
Uri Property MapVerification - Client URI domain control verification state.
- created
At String - Timestamp when the OAuth client was created.
- grant
Types List<String> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has
Rotated BooleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- logo
Uri String - URL of the client's logo.
- oauth
Client StringId - The unique identifier for an OAuth client.
- policy
Uri String - URL that points to a privacy policy document.
- post
Logout List<String>Redirect Uris - Array of allowed post-logout redirect URIs.
- promoted
At String - Timestamp when the OAuth client was promoted to public visibility.
- redirect
Uris List<String> - Array of allowed redirect URIs for the client.
- response
Types List<String> - Array of OAuth response types the client is allowed to use.
- scopes List<String>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint StringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos
Uri String - URL that points to a terms of service document.
- updated
At String - Timestamp when the OAuth client was last updated.
- visibility String
- Promote the OAuth client from private to public visibility. Only
publicis accepted; demotion toprivateis not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope. Available values: "public".
Supporting Types
OauthClientClientUriVerification, OauthClientClientUriVerificationArgs
Import
This resource does not currently support
pulumi import.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Jul 16, 2026 by Pulumi