@googleapis/sts 15.1.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v1.js CHANGED
@@ -34,16 +34,244 @@ var sts_v1;
34
34
  */
35
35
  class Sts {
36
36
  context;
37
+ organizations;
38
+ projects;
37
39
  v1;
38
40
  constructor(options, google) {
39
41
  this.context = {
40
42
  _options: options || {},
41
43
  google,
42
44
  };
45
+ this.organizations = new Resource$Organizations(this.context);
46
+ this.projects = new Resource$Projects(this.context);
43
47
  this.v1 = new Resource$V1(this.context);
44
48
  }
45
49
  }
46
50
  sts_v1.Sts = Sts;
51
+ class Resource$Organizations {
52
+ context;
53
+ locations;
54
+ constructor(context) {
55
+ this.context = context;
56
+ this.locations = new Resource$Organizations$Locations(this.context);
57
+ }
58
+ }
59
+ sts_v1.Resource$Organizations = Resource$Organizations;
60
+ class Resource$Organizations$Locations {
61
+ context;
62
+ workloadIdentityPools;
63
+ constructor(context) {
64
+ this.context = context;
65
+ this.workloadIdentityPools =
66
+ new Resource$Organizations$Locations$Workloadidentitypools(this.context);
67
+ }
68
+ }
69
+ sts_v1.Resource$Organizations$Locations = Resource$Organizations$Locations;
70
+ class Resource$Organizations$Locations$Workloadidentitypools {
71
+ context;
72
+ openid;
73
+ wellKnown;
74
+ constructor(context) {
75
+ this.context = context;
76
+ this.openid =
77
+ new Resource$Organizations$Locations$Workloadidentitypools$Openid(this.context);
78
+ this.wellKnown =
79
+ new Resource$Organizations$Locations$Workloadidentitypools$WellKnown(this.context);
80
+ }
81
+ }
82
+ sts_v1.Resource$Organizations$Locations$Workloadidentitypools = Resource$Organizations$Locations$Workloadidentitypools;
83
+ class Resource$Organizations$Locations$Workloadidentitypools$Openid {
84
+ context;
85
+ constructor(context) {
86
+ this.context = context;
87
+ }
88
+ getJwks(paramsOrCallback, optionsOrCallback, callback) {
89
+ let params = (paramsOrCallback ||
90
+ {});
91
+ let options = (optionsOrCallback || {});
92
+ if (typeof paramsOrCallback === 'function') {
93
+ callback = paramsOrCallback;
94
+ params =
95
+ {};
96
+ options = {};
97
+ }
98
+ if (typeof optionsOrCallback === 'function') {
99
+ callback = optionsOrCallback;
100
+ options = {};
101
+ }
102
+ const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
103
+ const parameters = {
104
+ options: Object.assign({
105
+ url: (rootUrl + '/v1/{+name}/openid/jwks').replace(/([^:]\/)\/+/g, '$1'),
106
+ method: 'GET',
107
+ apiVersion: '',
108
+ }, options),
109
+ params,
110
+ requiredParams: ['name'],
111
+ pathParams: ['name'],
112
+ context: this.context,
113
+ };
114
+ if (callback) {
115
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
116
+ }
117
+ else {
118
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
119
+ }
120
+ }
121
+ }
122
+ sts_v1.Resource$Organizations$Locations$Workloadidentitypools$Openid = Resource$Organizations$Locations$Workloadidentitypools$Openid;
123
+ class Resource$Organizations$Locations$Workloadidentitypools$WellKnown {
124
+ context;
125
+ constructor(context) {
126
+ this.context = context;
127
+ }
128
+ getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) {
129
+ let params = (paramsOrCallback ||
130
+ {});
131
+ let options = (optionsOrCallback || {});
132
+ if (typeof paramsOrCallback === 'function') {
133
+ callback = paramsOrCallback;
134
+ params =
135
+ {};
136
+ options = {};
137
+ }
138
+ if (typeof optionsOrCallback === 'function') {
139
+ callback = optionsOrCallback;
140
+ options = {};
141
+ }
142
+ const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
143
+ const parameters = {
144
+ options: Object.assign({
145
+ url: (rootUrl + '/v1/{+name}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'),
146
+ method: 'GET',
147
+ apiVersion: '',
148
+ }, options),
149
+ params,
150
+ requiredParams: ['name'],
151
+ pathParams: ['name'],
152
+ context: this.context,
153
+ };
154
+ if (callback) {
155
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
156
+ }
157
+ else {
158
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
159
+ }
160
+ }
161
+ }
162
+ sts_v1.Resource$Organizations$Locations$Workloadidentitypools$WellKnown = Resource$Organizations$Locations$Workloadidentitypools$WellKnown;
163
+ class Resource$Projects {
164
+ context;
165
+ locations;
166
+ constructor(context) {
167
+ this.context = context;
168
+ this.locations = new Resource$Projects$Locations(this.context);
169
+ }
170
+ }
171
+ sts_v1.Resource$Projects = Resource$Projects;
172
+ class Resource$Projects$Locations {
173
+ context;
174
+ workloadIdentityPools;
175
+ constructor(context) {
176
+ this.context = context;
177
+ this.workloadIdentityPools =
178
+ new Resource$Projects$Locations$Workloadidentitypools(this.context);
179
+ }
180
+ }
181
+ sts_v1.Resource$Projects$Locations = Resource$Projects$Locations;
182
+ class Resource$Projects$Locations$Workloadidentitypools {
183
+ context;
184
+ openid;
185
+ wellKnown;
186
+ constructor(context) {
187
+ this.context = context;
188
+ this.openid =
189
+ new Resource$Projects$Locations$Workloadidentitypools$Openid(this.context);
190
+ this.wellKnown =
191
+ new Resource$Projects$Locations$Workloadidentitypools$WellKnown(this.context);
192
+ }
193
+ }
194
+ sts_v1.Resource$Projects$Locations$Workloadidentitypools = Resource$Projects$Locations$Workloadidentitypools;
195
+ class Resource$Projects$Locations$Workloadidentitypools$Openid {
196
+ context;
197
+ constructor(context) {
198
+ this.context = context;
199
+ }
200
+ getJwks(paramsOrCallback, optionsOrCallback, callback) {
201
+ let params = (paramsOrCallback ||
202
+ {});
203
+ let options = (optionsOrCallback || {});
204
+ if (typeof paramsOrCallback === 'function') {
205
+ callback = paramsOrCallback;
206
+ params =
207
+ {};
208
+ options = {};
209
+ }
210
+ if (typeof optionsOrCallback === 'function') {
211
+ callback = optionsOrCallback;
212
+ options = {};
213
+ }
214
+ const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
215
+ const parameters = {
216
+ options: Object.assign({
217
+ url: (rootUrl + '/v1/{+name}/openid/jwks').replace(/([^:]\/)\/+/g, '$1'),
218
+ method: 'GET',
219
+ apiVersion: '',
220
+ }, options),
221
+ params,
222
+ requiredParams: ['name'],
223
+ pathParams: ['name'],
224
+ context: this.context,
225
+ };
226
+ if (callback) {
227
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
228
+ }
229
+ else {
230
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
231
+ }
232
+ }
233
+ }
234
+ sts_v1.Resource$Projects$Locations$Workloadidentitypools$Openid = Resource$Projects$Locations$Workloadidentitypools$Openid;
235
+ class Resource$Projects$Locations$Workloadidentitypools$WellKnown {
236
+ context;
237
+ constructor(context) {
238
+ this.context = context;
239
+ }
240
+ getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) {
241
+ let params = (paramsOrCallback ||
242
+ {});
243
+ let options = (optionsOrCallback || {});
244
+ if (typeof paramsOrCallback === 'function') {
245
+ callback = paramsOrCallback;
246
+ params =
247
+ {};
248
+ options = {};
249
+ }
250
+ if (typeof optionsOrCallback === 'function') {
251
+ callback = optionsOrCallback;
252
+ options = {};
253
+ }
254
+ const rootUrl = options.rootUrl || 'https://sts.googleapis.com/';
255
+ const parameters = {
256
+ options: Object.assign({
257
+ url: (rootUrl + '/v1/{+name}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'),
258
+ method: 'GET',
259
+ apiVersion: '',
260
+ }, options),
261
+ params,
262
+ requiredParams: ['name'],
263
+ pathParams: ['name'],
264
+ context: this.context,
265
+ };
266
+ if (callback) {
267
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
268
+ }
269
+ else {
270
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
271
+ }
272
+ }
273
+ }
274
+ sts_v1.Resource$Projects$Locations$Workloadidentitypools$WellKnown = Resource$Projects$Locations$Workloadidentitypools$WellKnown;
47
275
  class Resource$V1 {
48
276
  context;
49
277
  constructor(context) {
package/build/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../v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BAC5B,MAAM,GAAG,EAA8B,CAAC;gBACxC,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE,CAAC;gBAC5C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YACjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC1D,MAAM,EAAE,MAAM;oBACd,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;YACJ,CAAC;QACH,CAAC;KACF;IAnKY,kBAAW,cAmKvB,CAAA;AAQH,CAAC,EAztCgB,MAAM,sBAAN,MAAM,QAytCtB"}
package/build/v1beta.d.ts CHANGED
@@ -164,7 +164,7 @@ export declare namespace sts_v1beta {
164
164
  */
165
165
  scope?: string | null;
166
166
  /**
167
- * Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. Must be in the past. - `exp`: The expiration time, in seconds, since the Unix epoch. Must be less than 48 hours after `iat`. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc Example header: ``` { "alg": "RS256", "kid": "us-east-11" \} ``` Example payload: ``` { "iss": "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": "//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider", "sub": "113475438248934895348", "my_claims": { "additional_claim": "value" \} \} ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { "headers": [ {"key": "x-amz-date", "value": "20200815T015049Z"\}, {"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature"\}, {"key": "x-goog-cloud-target-resource", "value": "//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/"\}, {"key": "host", "value": "sts.amazonaws.com"\} . ], "method": "POST", "url": "https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" \} ``` You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes.
167
+ * Required. The input token. This token is either an external credential issued by a workload identity pool provider, or a short-lived access token issued by Google. If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `subject_token_type` must be either `urn:ietf:params:oauth:token-type:jwt` or `urn:ietf:params:oauth:token-type:id_token`. The following headers are required: - `kid`: The identifier of the signing key securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must be `RS256` or `ES256`. The following payload fields are required. For more information, see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `iss`: The issuer of the token. The issuer must provide a discovery document at the URL `/.well-known/openid-configuration`, where `` is the value of this field. The document must be formatted according to section 4.2 of the [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in seconds, since the Unix epoch. This timestamp must be in the past and no more than 24 hours in the past, or the token will be rejected. Note that this implies the token is only acceptable within a time window of at most 24 hours. - `exp`: The expiration time, in seconds, since the Unix epoch. Shorter expiration times are more secure. If possible, we recommend setting an expiration time less than 6 hours. - `sub`: The identity asserted in the JWT. - `aud`: For workload identity pools, this must be a value specified in the allowed audiences for the workload identity pool provider, or one of the audiences allowed by default if no audiences were specified. See https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.workloadIdentityPools.providers#oidc Example header: ``` { "alg": "RS256", "kid": "us-east-11" \} ``` Example payload: ``` { "iss": "https://accounts.google.com", "iat": 1517963104, "exp": 1517966704, "aud": "//iam.googleapis.com/projects/1234567890123/locations/global/workloadIdentityPools/my-pool/providers/my-provider", "sub": "113475438248934895348", "my_claims": { "additional_claim": "value" \} \} ``` If `subject_token` is for AWS, it must be a serialized `GetCallerIdentity` token. This token contains the same information as a request to the AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity) method, as well as the AWS [signature](https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) for the request information. Use Signature Version 4. Format the request as URL-encoded JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-type:aws4_request`. The following parameters are required: - `url`: The URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP request headers, which must include: - `Authorization`: The request signature. - `x-amz-date`: The time you will send the request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#sigv4_elements_date) string. This value is typically set to the current time and is used to help prevent replay attacks. - `host`: The hostname of the `url` field; for example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full, canonical resource name of the workload identity pool provider, with or without an `https:` prefix. To help ensure data integrity, we recommend including this header in the `SignedHeaders` field of the signed request. For example: //iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ https://iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/ If you are using temporary security credentials provided by AWS, you must also include the header `x-amz-security-token`, with the value set to the session token. The following example shows a `GetCallerIdentity` token: ``` { "headers": [ {"key": "x-amz-date", "value": "20200815T015049Z"\}, {"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$signature"\}, {"key": "x-goog-cloud-target-resource", "value": "//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/"\}, {"key": "host", "value": "sts.amazonaws.com"\} . ], "method": "POST", "url": "https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" \} ``` You can also use a Google-issued OAuth 2.0 access token with this field to obtain an access token with new security attributes applied, such as a Credential Access Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:token-type:access_token`. If an access token already contains security attributes, you cannot apply additional security attributes.
168
168
  */
169
169
  subjectToken?: string | null;
170
170
  /**
@@ -215,7 +215,7 @@ export declare namespace sts_v1beta {
215
215
  */
216
216
  accessBoundary?: Schema$GoogleIdentityStsV1AccessBoundary;
217
217
  /**
218
- * The unpadded, base64url-encoded SHA-256 hash of the certificate's DER encoding and it must be 43 characters long. The resulting token will be bound to this value.
218
+ * The unpadded, url-escaped, base64-encoded SHA-256 hash of the certificate's DER encoding. It must be 43 characters long. The resulting token will be bound to this value.
219
219
  */
220
220
  bindCertFingerprint?: string | null;
221
221
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/sts",
3
- "version": "15.1.0",
3
+ "version": "16.0.0",
4
4
  "description": "sts",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",