sts
import { sts } from "https://googleapis.deno.dev/v1/sts:v1.ts";
The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources.
class sts {}
async v1Token(req: GoogleIdentityStsV1ExchangeTokenRequest): Promise<GoogleIdentityStsV1ExchangeTokenResponse>;
§Methods
§
v1Token(req: GoogleIdentityStsV1ExchangeTokenRequest): Promise<GoogleIdentityStsV1ExchangeTokenResponse>
[src]Exchanges a credential for a Google OAuth 2.0 access token. The token
asserts an external identity within an identity pool, or it applies a
Credential Access Boundary to a Google access token. Note that workforce
pools do not support Credential Access Boundaries. When you call this
method, do not send the Authorization
HTTP header in the request. This
method does not require the Authorization
header, and using the header
can cause the request to fail.