0.0.20240501 • Published 22 hours ago

@maxim_mazurok/gapi.client.sts-v1 v0.0.20240501

Weekly downloads
-
License
MIT
Repository
github
Last release
22 hours ago

TypeScript typings for Security Token Service API v1

The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources. For detailed description please check documentation.

Installing

Install typings for Security Token Service API:

npm install @types/gapi.client.sts-v1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load(
  'https://sts.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.sts
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('sts', 'v1', () => {
  // now we can use:
  // gapi.client.sts
});

After that you can use Security Token Service API resources:

/*
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.
*/
await gapi.client.sts.token({});
0.0.20240501

22 hours ago

0.0.20240425

8 days ago

0.0.20240417

15 days ago

0.0.20240410

21 days ago

0.0.20240321

1 month ago

0.0.20240320

2 months ago

0.0.20240307

2 months ago

0.0.20240228

2 months ago

0.0.20240222

2 months ago

0.0.20240220

3 months ago

0.0.20240202

3 months ago

0.0.20240129

3 months ago

0.0.20240122

4 months ago

0.0.20231029

6 months ago

0.0.20231105

6 months ago

0.0.20230812

9 months ago

0.0.20231112

6 months ago

0.0.20230806

9 months ago

0.0.20230729

9 months ago

0.0.20230723

10 months ago

0.0.20230923

7 months ago

0.0.20231022

7 months ago

0.0.20230917

8 months ago

0.0.20231006

7 months ago

0.0.20230716

10 months ago

0.0.20231016

7 months ago

0.0.20230906

8 months ago

0.0.20230708

10 months ago

0.0.20230903

8 months ago

0.0.20230625

11 months ago

0.0.20231001

7 months ago

0.0.20230618

11 months ago

0.0.20230514

12 months ago

0.0.20230611

11 months ago

0.0.20230521

12 months ago

0.0.20230601

11 months ago

0.0.20230528

11 months ago

0.0.20230429

1 year ago

0.0.20230507

12 months ago

0.0.20230415

1 year ago

0.0.20230319

1 year ago

0.0.20230326

1 year ago

0.0.20230304

1 year ago

0.0.20230423

1 year ago

0.0.20230402

1 year ago

0.0.20230226

1 year ago

0.0.20230408

1 year ago

0.0.20230312

1 year ago

0.0.20230219

1 year ago

0.0.20230202

1 year ago

0.0.20230129

1 year ago

0.0.20230213

1 year ago

0.0.20221215

1 year ago

0.0.20221204

1 year ago

0.0.20230107

1 year ago

0.0.20221112

1 year ago

0.0.20230121

1 year ago

0.0.20230114

1 year ago

0.0.20221106

1 year ago

0.0.20221016

2 years ago

0.0.20221004

2 years ago

0.0.20221023

2 years ago

0.0.20221029

2 years ago

0.0.20220925

2 years ago

0.0.20220916

2 years ago

0.0.20220819

2 years ago

0.0.20220910

2 years ago

0.0.20220902

2 years ago

0.0.20220826

2 years ago

0.0.20220812

2 years ago

0.0.20220806

2 years ago