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

GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials

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

For resource owner credentials grant, the client will ask the user for their authorization credentials (ususally a username and password) and send a POST request to the authorization server. The authorization server will respond with a JSON object containing the access token.

interface GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials {
clientId?: string;
clientSecret?: string;
password?: string;
requestType?:
| "REQUEST_TYPE_UNSPECIFIED"
| "REQUEST_BODY"
| "QUERY_PARAMETERS"
| "ENCODED_HEADER";
scope?: string;
tokenEndpoint?: string;
username?: string;
}

§Properties

§

Access token fetched from the authorization server.

§
clientId?: string
[src]

The client's ID.

§
clientSecret?: string
[src]

The client's secret.

§
password?: string
[src]

The user's password.

§
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 endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token.

§

Token parameters for the auth request.

§
username?: string
[src]

The user's username.