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 {
accessToken?: GoogleCloudIntegrationsV1alphaAccessToken;
clientId?: string;
clientSecret?: string;
password?: string;
requestType?:
| "REQUEST_TYPE_UNSPECIFIED"
| "REQUEST_BODY"
| "QUERY_PARAMETERS"
| "ENCODED_HEADER";
scope?: string;
tokenEndpoint?: string;
tokenParams?: GoogleCloudIntegrationsV1alphaParameterMap;
username?: string;
}§Properties
§
accessToken?: GoogleCloudIntegrationsV1alphaAccessToken
[src]Access token fetched from the authorization server.
§
requestType?: "REQUEST_TYPE_UNSPECIFIED" | "REQUEST_BODY" | "QUERY_PARAMETERS" | "ENCODED_HEADER"
[src]Represent how to pass parameters to fetch access token
§
tokenEndpoint?: string
[src]The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token.
§
tokenParams?: GoogleCloudIntegrationsV1alphaParameterMap
[src]Token parameters for the auth request.