Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OAuthConfig

import type { OAuthConfig } from "https://googleapis.deno.dev/v1/ces:v1.ts";

Configurations for authentication with OAuth.

interface OAuthConfig {
clientId?: string;
clientSecretVersion?: string;
oauthGrantType?: "OAUTH_GRANT_TYPE_UNSPECIFIED" | "CLIENT_CREDENTIAL";
scopes?: string[];
tokenEndpoint?: string;
}

§Properties

§
clientId?: string
[src]

Required. The client ID from the OAuth provider.

§
clientSecretVersion?: string
[src]

Required. The name of the SecretManager secret version resource storing the client secret. Format: projects/{project}/secrets/{secret}/versions/{version} Note: You should grant roles/secretmanager.secretAccessor role to the CES service agent service-@gcp-sa-ces.iam.gserviceaccount.com.

§
oauthGrantType?: "OAUTH_GRANT_TYPE_UNSPECIFIED" | "CLIENT_CREDENTIAL"
[src]

Required. OAuth grant types.

§
scopes?: string[]
[src]

Optional. The OAuth scopes to grant.

§
tokenEndpoint?: string
[src]

Required. The token endpoint in the OAuth provider to exchange for an access token.