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

GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode

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

The OAuth Type where the client sends request with the client id and requested scopes to auth endpoint. User sees a consent screen and auth code is received at specified redirect url afterwards. The auth code is then combined with the client id and secret and sent to the token endpoint in exchange for the access and refresh token. The refresh token can be used to fetch new access tokens.

interface GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode {
applyReauthPolicy?: boolean;
authCode?: string;
authEndpoint?: string;
clientId?: string;
clientSecret?: string;
requestType?:
| "REQUEST_TYPE_UNSPECIFIED"
| "REQUEST_BODY"
| "QUERY_PARAMETERS"
| "ENCODED_HEADER";
scope?: string;
tokenEndpoint?: string;
}

§Properties

§

The access token received from the token endpoint.

§
applyReauthPolicy?: boolean
[src]

Indicates if the user has opted in Google Reauth Policy. If opted in, the refresh token will be valid for 20 hours, after which time users must re-authenticate in order to obtain a new one.

§
authCode?: string
[src]

The Auth Code that is used to initially retrieve the access token.

§
authEndpoint?: string
[src]

The auth url endpoint to send the auth code request to.

§

The auth parameters sent along with the auth code request.

§
clientId?: string
[src]

The client's id.

§
clientSecret?: string
[src]

The client's secret.

§
requestType?: "REQUEST_TYPE_UNSPECIFIED" | "REQUEST_BODY" | "QUERY_PARAMETERS" | "ENCODED_HEADER"
[src]

Represent how to pass parameters to fetch access token

§
scope?: string
[src]

A space-delimited list of requested scope permissions.

§
tokenEndpoint?: string
[src]

The token url endpoint to send the token request to.

§

The token parameters sent along with the token request.