@aws-sdk/client-sso-oidc 3.928.0 → 3.930.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/dist-cjs/index.js +430 -538
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SSOOIDCClient.js +2 -0
- package/dist-es/commands/CreateTokenCommand.js +3 -10
- package/dist-es/commands/CreateTokenWithIAMCommand.js +3 -10
- package/dist-es/commands/RegisterClientCommand.js +3 -10
- package/dist-es/commands/StartDeviceAuthorizationCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -34
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +382 -0
- package/dist-types/SSOOIDCClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -24
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +40 -0
- package/dist-types/ts3.4/SSOOIDCClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -18
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +45 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -430
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class SSOOIDCClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,17 +110,17 @@ class SSOOIDCClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class SSOOIDCServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const AccessDeniedExceptionReason = {
|
|
121
121
|
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
122
122
|
};
|
|
123
|
-
class AccessDeniedException extends SSOOIDCServiceException {
|
|
123
|
+
let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 {
|
|
124
124
|
name = "AccessDeniedException";
|
|
125
125
|
$fault = "client";
|
|
126
126
|
error;
|
|
@@ -137,8 +137,8 @@ class AccessDeniedException extends SSOOIDCServiceException {
|
|
|
137
137
|
this.reason = opts.reason;
|
|
138
138
|
this.error_description = opts.error_description;
|
|
139
139
|
}
|
|
140
|
-
}
|
|
141
|
-
class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
140
|
+
};
|
|
141
|
+
let AuthorizationPendingException$1 = class AuthorizationPendingException extends SSOOIDCServiceException$1 {
|
|
142
142
|
name = "AuthorizationPendingException";
|
|
143
143
|
$fault = "client";
|
|
144
144
|
error;
|
|
@@ -153,8 +153,8 @@ class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
|
153
153
|
this.error = opts.error;
|
|
154
154
|
this.error_description = opts.error_description;
|
|
155
155
|
}
|
|
156
|
-
}
|
|
157
|
-
class ExpiredTokenException extends SSOOIDCServiceException {
|
|
156
|
+
};
|
|
157
|
+
let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCServiceException$1 {
|
|
158
158
|
name = "ExpiredTokenException";
|
|
159
159
|
$fault = "client";
|
|
160
160
|
error;
|
|
@@ -169,8 +169,8 @@ class ExpiredTokenException extends SSOOIDCServiceException {
|
|
|
169
169
|
this.error = opts.error;
|
|
170
170
|
this.error_description = opts.error_description;
|
|
171
171
|
}
|
|
172
|
-
}
|
|
173
|
-
class InternalServerException extends SSOOIDCServiceException {
|
|
172
|
+
};
|
|
173
|
+
let InternalServerException$1 = class InternalServerException extends SSOOIDCServiceException$1 {
|
|
174
174
|
name = "InternalServerException";
|
|
175
175
|
$fault = "server";
|
|
176
176
|
error;
|
|
@@ -185,8 +185,8 @@ class InternalServerException extends SSOOIDCServiceException {
|
|
|
185
185
|
this.error = opts.error;
|
|
186
186
|
this.error_description = opts.error_description;
|
|
187
187
|
}
|
|
188
|
-
}
|
|
189
|
-
class InvalidClientException extends SSOOIDCServiceException {
|
|
188
|
+
};
|
|
189
|
+
let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServiceException$1 {
|
|
190
190
|
name = "InvalidClientException";
|
|
191
191
|
$fault = "client";
|
|
192
192
|
error;
|
|
@@ -201,8 +201,8 @@ class InvalidClientException extends SSOOIDCServiceException {
|
|
|
201
201
|
this.error = opts.error;
|
|
202
202
|
this.error_description = opts.error_description;
|
|
203
203
|
}
|
|
204
|
-
}
|
|
205
|
-
class InvalidGrantException extends SSOOIDCServiceException {
|
|
204
|
+
};
|
|
205
|
+
let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCServiceException$1 {
|
|
206
206
|
name = "InvalidGrantException";
|
|
207
207
|
$fault = "client";
|
|
208
208
|
error;
|
|
@@ -217,14 +217,14 @@ class InvalidGrantException extends SSOOIDCServiceException {
|
|
|
217
217
|
this.error = opts.error;
|
|
218
218
|
this.error_description = opts.error_description;
|
|
219
219
|
}
|
|
220
|
-
}
|
|
220
|
+
};
|
|
221
221
|
const InvalidRequestExceptionReason = {
|
|
222
222
|
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
223
223
|
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
224
224
|
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
225
225
|
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
226
226
|
};
|
|
227
|
-
class InvalidRequestException extends SSOOIDCServiceException {
|
|
227
|
+
let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 {
|
|
228
228
|
name = "InvalidRequestException";
|
|
229
229
|
$fault = "client";
|
|
230
230
|
error;
|
|
@@ -241,8 +241,8 @@ class InvalidRequestException extends SSOOIDCServiceException {
|
|
|
241
241
|
this.reason = opts.reason;
|
|
242
242
|
this.error_description = opts.error_description;
|
|
243
243
|
}
|
|
244
|
-
}
|
|
245
|
-
class InvalidScopeException extends SSOOIDCServiceException {
|
|
244
|
+
};
|
|
245
|
+
let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCServiceException$1 {
|
|
246
246
|
name = "InvalidScopeException";
|
|
247
247
|
$fault = "client";
|
|
248
248
|
error;
|
|
@@ -257,8 +257,8 @@ class InvalidScopeException extends SSOOIDCServiceException {
|
|
|
257
257
|
this.error = opts.error;
|
|
258
258
|
this.error_description = opts.error_description;
|
|
259
259
|
}
|
|
260
|
-
}
|
|
261
|
-
class SlowDownException extends SSOOIDCServiceException {
|
|
260
|
+
};
|
|
261
|
+
let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceException$1 {
|
|
262
262
|
name = "SlowDownException";
|
|
263
263
|
$fault = "client";
|
|
264
264
|
error;
|
|
@@ -273,8 +273,8 @@ class SlowDownException extends SSOOIDCServiceException {
|
|
|
273
273
|
this.error = opts.error;
|
|
274
274
|
this.error_description = opts.error_description;
|
|
275
275
|
}
|
|
276
|
-
}
|
|
277
|
-
class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
276
|
+
};
|
|
277
|
+
let UnauthorizedClientException$1 = class UnauthorizedClientException extends SSOOIDCServiceException$1 {
|
|
278
278
|
name = "UnauthorizedClientException";
|
|
279
279
|
$fault = "client";
|
|
280
280
|
error;
|
|
@@ -289,8 +289,8 @@ class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
|
289
289
|
this.error = opts.error;
|
|
290
290
|
this.error_description = opts.error_description;
|
|
291
291
|
}
|
|
292
|
-
}
|
|
293
|
-
class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
292
|
+
};
|
|
293
|
+
let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extends SSOOIDCServiceException$1 {
|
|
294
294
|
name = "UnsupportedGrantTypeException";
|
|
295
295
|
$fault = "client";
|
|
296
296
|
error;
|
|
@@ -305,8 +305,8 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
|
305
305
|
this.error = opts.error;
|
|
306
306
|
this.error_description = opts.error_description;
|
|
307
307
|
}
|
|
308
|
-
}
|
|
309
|
-
class InvalidRequestRegionException extends SSOOIDCServiceException {
|
|
308
|
+
};
|
|
309
|
+
let InvalidRequestRegionException$1 = class InvalidRequestRegionException extends SSOOIDCServiceException$1 {
|
|
310
310
|
name = "InvalidRequestRegionException";
|
|
311
311
|
$fault = "client";
|
|
312
312
|
error;
|
|
@@ -325,8 +325,8 @@ class InvalidRequestRegionException extends SSOOIDCServiceException {
|
|
|
325
325
|
this.endpoint = opts.endpoint;
|
|
326
326
|
this.region = opts.region;
|
|
327
327
|
}
|
|
328
|
-
}
|
|
329
|
-
class InvalidClientMetadataException extends SSOOIDCServiceException {
|
|
328
|
+
};
|
|
329
|
+
let InvalidClientMetadataException$1 = class InvalidClientMetadataException extends SSOOIDCServiceException$1 {
|
|
330
330
|
name = "InvalidClientMetadataException";
|
|
331
331
|
$fault = "client";
|
|
332
332
|
error;
|
|
@@ -341,8 +341,8 @@ class InvalidClientMetadataException extends SSOOIDCServiceException {
|
|
|
341
341
|
this.error = opts.error;
|
|
342
342
|
this.error_description = opts.error_description;
|
|
343
343
|
}
|
|
344
|
-
}
|
|
345
|
-
class InvalidRedirectUriException extends SSOOIDCServiceException {
|
|
344
|
+
};
|
|
345
|
+
let InvalidRedirectUriException$1 = class InvalidRedirectUriException extends SSOOIDCServiceException$1 {
|
|
346
346
|
name = "InvalidRedirectUriException";
|
|
347
347
|
$fault = "client";
|
|
348
348
|
error;
|
|
@@ -357,480 +357,393 @@ class InvalidRedirectUriException extends SSOOIDCServiceException {
|
|
|
357
357
|
this.error = opts.error;
|
|
358
358
|
this.error_description = opts.error_description;
|
|
359
359
|
}
|
|
360
|
-
}
|
|
361
|
-
const CreateTokenRequestFilterSensitiveLog = (obj) => ({
|
|
362
|
-
...obj,
|
|
363
|
-
...(obj.clientSecret && { clientSecret: smithyClient.SENSITIVE_STRING }),
|
|
364
|
-
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
|
365
|
-
...(obj.codeVerifier && { codeVerifier: smithyClient.SENSITIVE_STRING }),
|
|
366
|
-
});
|
|
367
|
-
const CreateTokenResponseFilterSensitiveLog = (obj) => ({
|
|
368
|
-
...obj,
|
|
369
|
-
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
|
370
|
-
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
|
371
|
-
...(obj.idToken && { idToken: smithyClient.SENSITIVE_STRING }),
|
|
372
|
-
});
|
|
373
|
-
const CreateTokenWithIAMRequestFilterSensitiveLog = (obj) => ({
|
|
374
|
-
...obj,
|
|
375
|
-
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
|
376
|
-
...(obj.assertion && { assertion: smithyClient.SENSITIVE_STRING }),
|
|
377
|
-
...(obj.subjectToken && { subjectToken: smithyClient.SENSITIVE_STRING }),
|
|
378
|
-
...(obj.codeVerifier && { codeVerifier: smithyClient.SENSITIVE_STRING }),
|
|
379
|
-
});
|
|
380
|
-
const CreateTokenWithIAMResponseFilterSensitiveLog = (obj) => ({
|
|
381
|
-
...obj,
|
|
382
|
-
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
|
383
|
-
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
|
384
|
-
...(obj.idToken && { idToken: smithyClient.SENSITIVE_STRING }),
|
|
385
|
-
});
|
|
386
|
-
const RegisterClientResponseFilterSensitiveLog = (obj) => ({
|
|
387
|
-
...obj,
|
|
388
|
-
...(obj.clientSecret && { clientSecret: smithyClient.SENSITIVE_STRING }),
|
|
389
|
-
});
|
|
390
|
-
const StartDeviceAuthorizationRequestFilterSensitiveLog = (obj) => ({
|
|
391
|
-
...obj,
|
|
392
|
-
...(obj.clientSecret && { clientSecret: smithyClient.SENSITIVE_STRING }),
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
const se_CreateTokenCommand = async (input, context) => {
|
|
396
|
-
const b = core.requestBuilder(input, context);
|
|
397
|
-
const headers = {
|
|
398
|
-
"content-type": "application/json",
|
|
399
|
-
};
|
|
400
|
-
b.bp("/token");
|
|
401
|
-
let body;
|
|
402
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
403
|
-
clientId: [],
|
|
404
|
-
clientSecret: [],
|
|
405
|
-
code: [],
|
|
406
|
-
codeVerifier: [],
|
|
407
|
-
deviceCode: [],
|
|
408
|
-
grantType: [],
|
|
409
|
-
redirectUri: [],
|
|
410
|
-
refreshToken: [],
|
|
411
|
-
scope: (_) => smithyClient._json(_),
|
|
412
|
-
}));
|
|
413
|
-
b.m("POST").h(headers).b(body);
|
|
414
|
-
return b.build();
|
|
415
360
|
};
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
const
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
const exception = new UnauthorizedClientException({
|
|
793
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
794
|
-
...contents,
|
|
795
|
-
});
|
|
796
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
797
|
-
};
|
|
798
|
-
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
|
799
|
-
const contents = smithyClient.map({});
|
|
800
|
-
const data = parsedOutput.body;
|
|
801
|
-
const doc = smithyClient.take(data, {
|
|
802
|
-
error: smithyClient.expectString,
|
|
803
|
-
error_description: smithyClient.expectString,
|
|
804
|
-
});
|
|
805
|
-
Object.assign(contents, doc);
|
|
806
|
-
const exception = new UnsupportedGrantTypeException({
|
|
807
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
808
|
-
...contents,
|
|
809
|
-
});
|
|
810
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
811
|
-
};
|
|
812
|
-
const deserializeMetadata = (output) => ({
|
|
813
|
-
httpStatusCode: output.statusCode,
|
|
814
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
815
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
816
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
817
|
-
});
|
|
818
|
-
const _ai = "aws_iam";
|
|
361
|
+
|
|
362
|
+
const _A = "Assertion";
|
|
363
|
+
const _AAD = "AwsAdditionalDetails";
|
|
364
|
+
const _ADE = "AccessDeniedException";
|
|
365
|
+
const _APE = "AuthorizationPendingException";
|
|
366
|
+
const _AT = "AccessToken";
|
|
367
|
+
const _CS = "ClientSecret";
|
|
368
|
+
const _CT = "CreateToken";
|
|
369
|
+
const _CTR = "CreateTokenRequest";
|
|
370
|
+
const _CTRr = "CreateTokenResponse";
|
|
371
|
+
const _CTWIAM = "CreateTokenWithIAM";
|
|
372
|
+
const _CTWIAMR = "CreateTokenWithIAMRequest";
|
|
373
|
+
const _CTWIAMRr = "CreateTokenWithIAMResponse";
|
|
374
|
+
const _CV = "CodeVerifier";
|
|
375
|
+
const _ETE = "ExpiredTokenException";
|
|
376
|
+
const _ICE = "InvalidClientException";
|
|
377
|
+
const _ICME = "InvalidClientMetadataException";
|
|
378
|
+
const _IGE = "InvalidGrantException";
|
|
379
|
+
const _IRE = "InvalidRequestException";
|
|
380
|
+
const _IRRE = "InvalidRequestRegionException";
|
|
381
|
+
const _IRUE = "InvalidRedirectUriException";
|
|
382
|
+
const _ISE = "InternalServerException";
|
|
383
|
+
const _ISEn = "InvalidScopeException";
|
|
384
|
+
const _IT = "IdToken";
|
|
385
|
+
const _RC = "RegisterClient";
|
|
386
|
+
const _RCR = "RegisterClientRequest";
|
|
387
|
+
const _RCRe = "RegisterClientResponse";
|
|
388
|
+
const _RT = "RefreshToken";
|
|
389
|
+
const _SDA = "StartDeviceAuthorization";
|
|
390
|
+
const _SDAR = "StartDeviceAuthorizationRequest";
|
|
391
|
+
const _SDARt = "StartDeviceAuthorizationResponse";
|
|
392
|
+
const _SDE = "SlowDownException";
|
|
393
|
+
const _ST = "SubjectToken";
|
|
394
|
+
const _UCE = "UnauthorizedClientException";
|
|
395
|
+
const _UGTE = "UnsupportedGrantTypeException";
|
|
396
|
+
const _a = "assertion";
|
|
397
|
+
const _aAD = "awsAdditionalDetails";
|
|
398
|
+
const _aE = "authorizationEndpoint";
|
|
399
|
+
const _aT = "accessToken";
|
|
400
|
+
const _c = "client";
|
|
401
|
+
const _cI = "clientId";
|
|
402
|
+
const _cIIA = "clientIdIssuedAt";
|
|
403
|
+
const _cN = "clientName";
|
|
404
|
+
const _cS = "clientSecret";
|
|
405
|
+
const _cSEA = "clientSecretExpiresAt";
|
|
406
|
+
const _cT = "clientType";
|
|
407
|
+
const _cV = "codeVerifier";
|
|
408
|
+
const _co = "code";
|
|
409
|
+
const _dC = "deviceCode";
|
|
410
|
+
const _e = "error";
|
|
411
|
+
const _eAA = "entitledApplicationArn";
|
|
412
|
+
const _eI = "expiresIn";
|
|
413
|
+
const _ed = "error_description";
|
|
414
|
+
const _en = "endpoint";
|
|
415
|
+
const _gT = "grantType";
|
|
416
|
+
const _gTr = "grantTypes";
|
|
417
|
+
const _h = "http";
|
|
418
|
+
const _hE = "httpError";
|
|
419
|
+
const _i = "interval";
|
|
420
|
+
const _iC = "identityContext";
|
|
421
|
+
const _iT = "idToken";
|
|
422
|
+
const _iTT = "issuedTokenType";
|
|
423
|
+
const _iU = "issuerUrl";
|
|
424
|
+
const _r = "reason";
|
|
425
|
+
const _rT = "refreshToken";
|
|
426
|
+
const _rTT = "requestedTokenType";
|
|
427
|
+
const _rU = "redirectUri";
|
|
428
|
+
const _rUe = "redirectUris";
|
|
429
|
+
const _re = "region";
|
|
430
|
+
const _s = "scope";
|
|
431
|
+
const _sT = "subjectToken";
|
|
432
|
+
const _sTT = "subjectTokenType";
|
|
433
|
+
const _sU = "startUrl";
|
|
434
|
+
const _sc = "scopes";
|
|
435
|
+
const _se = "server";
|
|
436
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
437
|
+
const _tE = "tokenEndpoint";
|
|
438
|
+
const _tT = "tokenType";
|
|
439
|
+
const _uC = "userCode";
|
|
440
|
+
const _vU = "verificationUri";
|
|
441
|
+
const _vUC = "verificationUriComplete";
|
|
442
|
+
const n0 = "com.amazonaws.ssooidc";
|
|
443
|
+
var AccessToken = [0, n0, _AT, 8, 0];
|
|
444
|
+
var Assertion = [0, n0, _A, 8, 0];
|
|
445
|
+
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
446
|
+
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
447
|
+
var IdToken = [0, n0, _IT, 8, 0];
|
|
448
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
449
|
+
var SubjectToken = [0, n0, _ST, 8, 0];
|
|
450
|
+
var AccessDeniedException = [
|
|
451
|
+
-3,
|
|
452
|
+
n0,
|
|
453
|
+
_ADE,
|
|
454
|
+
{
|
|
455
|
+
[_e]: _c,
|
|
456
|
+
[_hE]: 400,
|
|
457
|
+
},
|
|
458
|
+
[_e, _r, _ed],
|
|
459
|
+
[0, 0, 0],
|
|
460
|
+
];
|
|
461
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
462
|
+
var AuthorizationPendingException = [
|
|
463
|
+
-3,
|
|
464
|
+
n0,
|
|
465
|
+
_APE,
|
|
466
|
+
{
|
|
467
|
+
[_e]: _c,
|
|
468
|
+
[_hE]: 400,
|
|
469
|
+
},
|
|
470
|
+
[_e, _ed],
|
|
471
|
+
[0, 0],
|
|
472
|
+
];
|
|
473
|
+
schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException, AuthorizationPendingException$1);
|
|
474
|
+
var AwsAdditionalDetails = [3, n0, _AAD, 0, [_iC], [0]];
|
|
475
|
+
var CreateTokenRequest = [
|
|
476
|
+
3,
|
|
477
|
+
n0,
|
|
478
|
+
_CTR,
|
|
479
|
+
0,
|
|
480
|
+
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
|
481
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
482
|
+
];
|
|
483
|
+
var CreateTokenResponse = [
|
|
484
|
+
3,
|
|
485
|
+
n0,
|
|
486
|
+
_CTRr,
|
|
487
|
+
0,
|
|
488
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
489
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
|
490
|
+
];
|
|
491
|
+
var CreateTokenWithIAMRequest = [
|
|
492
|
+
3,
|
|
493
|
+
n0,
|
|
494
|
+
_CTWIAMR,
|
|
495
|
+
0,
|
|
496
|
+
[_cI, _gT, _co, _rT, _a, _s, _rU, _sT, _sTT, _rTT, _cV],
|
|
497
|
+
[
|
|
498
|
+
0,
|
|
499
|
+
0,
|
|
500
|
+
0,
|
|
501
|
+
[() => RefreshToken, 0],
|
|
502
|
+
[() => Assertion, 0],
|
|
503
|
+
64 | 0,
|
|
504
|
+
0,
|
|
505
|
+
[() => SubjectToken, 0],
|
|
506
|
+
0,
|
|
507
|
+
0,
|
|
508
|
+
[() => CodeVerifier, 0],
|
|
509
|
+
],
|
|
510
|
+
];
|
|
511
|
+
var CreateTokenWithIAMResponse = [
|
|
512
|
+
3,
|
|
513
|
+
n0,
|
|
514
|
+
_CTWIAMRr,
|
|
515
|
+
0,
|
|
516
|
+
[_aT, _tT, _eI, _rT, _iT, _iTT, _s, _aAD],
|
|
517
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails],
|
|
518
|
+
];
|
|
519
|
+
var ExpiredTokenException = [
|
|
520
|
+
-3,
|
|
521
|
+
n0,
|
|
522
|
+
_ETE,
|
|
523
|
+
{
|
|
524
|
+
[_e]: _c,
|
|
525
|
+
[_hE]: 400,
|
|
526
|
+
},
|
|
527
|
+
[_e, _ed],
|
|
528
|
+
[0, 0],
|
|
529
|
+
];
|
|
530
|
+
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1);
|
|
531
|
+
var InternalServerException = [
|
|
532
|
+
-3,
|
|
533
|
+
n0,
|
|
534
|
+
_ISE,
|
|
535
|
+
{
|
|
536
|
+
[_e]: _se,
|
|
537
|
+
[_hE]: 500,
|
|
538
|
+
},
|
|
539
|
+
[_e, _ed],
|
|
540
|
+
[0, 0],
|
|
541
|
+
];
|
|
542
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
543
|
+
var InvalidClientException = [
|
|
544
|
+
-3,
|
|
545
|
+
n0,
|
|
546
|
+
_ICE,
|
|
547
|
+
{
|
|
548
|
+
[_e]: _c,
|
|
549
|
+
[_hE]: 401,
|
|
550
|
+
},
|
|
551
|
+
[_e, _ed],
|
|
552
|
+
[0, 0],
|
|
553
|
+
];
|
|
554
|
+
schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1);
|
|
555
|
+
var InvalidClientMetadataException = [
|
|
556
|
+
-3,
|
|
557
|
+
n0,
|
|
558
|
+
_ICME,
|
|
559
|
+
{
|
|
560
|
+
[_e]: _c,
|
|
561
|
+
[_hE]: 400,
|
|
562
|
+
},
|
|
563
|
+
[_e, _ed],
|
|
564
|
+
[0, 0],
|
|
565
|
+
];
|
|
566
|
+
schema.TypeRegistry.for(n0).registerError(InvalidClientMetadataException, InvalidClientMetadataException$1);
|
|
567
|
+
var InvalidGrantException = [
|
|
568
|
+
-3,
|
|
569
|
+
n0,
|
|
570
|
+
_IGE,
|
|
571
|
+
{
|
|
572
|
+
[_e]: _c,
|
|
573
|
+
[_hE]: 400,
|
|
574
|
+
},
|
|
575
|
+
[_e, _ed],
|
|
576
|
+
[0, 0],
|
|
577
|
+
];
|
|
578
|
+
schema.TypeRegistry.for(n0).registerError(InvalidGrantException, InvalidGrantException$1);
|
|
579
|
+
var InvalidRedirectUriException = [
|
|
580
|
+
-3,
|
|
581
|
+
n0,
|
|
582
|
+
_IRUE,
|
|
583
|
+
{
|
|
584
|
+
[_e]: _c,
|
|
585
|
+
[_hE]: 400,
|
|
586
|
+
},
|
|
587
|
+
[_e, _ed],
|
|
588
|
+
[0, 0],
|
|
589
|
+
];
|
|
590
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRedirectUriException, InvalidRedirectUriException$1);
|
|
591
|
+
var InvalidRequestException = [
|
|
592
|
+
-3,
|
|
593
|
+
n0,
|
|
594
|
+
_IRE,
|
|
595
|
+
{
|
|
596
|
+
[_e]: _c,
|
|
597
|
+
[_hE]: 400,
|
|
598
|
+
},
|
|
599
|
+
[_e, _r, _ed],
|
|
600
|
+
[0, 0, 0],
|
|
601
|
+
];
|
|
602
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
|
|
603
|
+
var InvalidRequestRegionException = [
|
|
604
|
+
-3,
|
|
605
|
+
n0,
|
|
606
|
+
_IRRE,
|
|
607
|
+
{
|
|
608
|
+
[_e]: _c,
|
|
609
|
+
[_hE]: 400,
|
|
610
|
+
},
|
|
611
|
+
[_e, _ed, _en, _re],
|
|
612
|
+
[0, 0, 0, 0],
|
|
613
|
+
];
|
|
614
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRequestRegionException, InvalidRequestRegionException$1);
|
|
615
|
+
var InvalidScopeException = [
|
|
616
|
+
-3,
|
|
617
|
+
n0,
|
|
618
|
+
_ISEn,
|
|
619
|
+
{
|
|
620
|
+
[_e]: _c,
|
|
621
|
+
[_hE]: 400,
|
|
622
|
+
},
|
|
623
|
+
[_e, _ed],
|
|
624
|
+
[0, 0],
|
|
625
|
+
];
|
|
626
|
+
schema.TypeRegistry.for(n0).registerError(InvalidScopeException, InvalidScopeException$1);
|
|
627
|
+
var RegisterClientRequest = [
|
|
628
|
+
3,
|
|
629
|
+
n0,
|
|
630
|
+
_RCR,
|
|
631
|
+
0,
|
|
632
|
+
[_cN, _cT, _sc, _rUe, _gTr, _iU, _eAA],
|
|
633
|
+
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0],
|
|
634
|
+
];
|
|
635
|
+
var RegisterClientResponse = [
|
|
636
|
+
3,
|
|
637
|
+
n0,
|
|
638
|
+
_RCRe,
|
|
639
|
+
0,
|
|
640
|
+
[_cI, _cS, _cIIA, _cSEA, _aE, _tE],
|
|
641
|
+
[0, [() => ClientSecret, 0], 1, 1, 0, 0],
|
|
642
|
+
];
|
|
643
|
+
var SlowDownException = [
|
|
644
|
+
-3,
|
|
645
|
+
n0,
|
|
646
|
+
_SDE,
|
|
647
|
+
{
|
|
648
|
+
[_e]: _c,
|
|
649
|
+
[_hE]: 400,
|
|
650
|
+
},
|
|
651
|
+
[_e, _ed],
|
|
652
|
+
[0, 0],
|
|
653
|
+
];
|
|
654
|
+
schema.TypeRegistry.for(n0).registerError(SlowDownException, SlowDownException$1);
|
|
655
|
+
var StartDeviceAuthorizationRequest = [
|
|
656
|
+
3,
|
|
657
|
+
n0,
|
|
658
|
+
_SDAR,
|
|
659
|
+
0,
|
|
660
|
+
[_cI, _cS, _sU],
|
|
661
|
+
[0, [() => ClientSecret, 0], 0],
|
|
662
|
+
];
|
|
663
|
+
var StartDeviceAuthorizationResponse = [
|
|
664
|
+
3,
|
|
665
|
+
n0,
|
|
666
|
+
_SDARt,
|
|
667
|
+
0,
|
|
668
|
+
[_dC, _uC, _vU, _vUC, _eI, _i],
|
|
669
|
+
[0, 0, 0, 0, 1, 1],
|
|
670
|
+
];
|
|
671
|
+
var UnauthorizedClientException = [
|
|
672
|
+
-3,
|
|
673
|
+
n0,
|
|
674
|
+
_UCE,
|
|
675
|
+
{
|
|
676
|
+
[_e]: _c,
|
|
677
|
+
[_hE]: 400,
|
|
678
|
+
},
|
|
679
|
+
[_e, _ed],
|
|
680
|
+
[0, 0],
|
|
681
|
+
];
|
|
682
|
+
schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException, UnauthorizedClientException$1);
|
|
683
|
+
var UnsupportedGrantTypeException = [
|
|
684
|
+
-3,
|
|
685
|
+
n0,
|
|
686
|
+
_UGTE,
|
|
687
|
+
{
|
|
688
|
+
[_e]: _c,
|
|
689
|
+
[_hE]: 400,
|
|
690
|
+
},
|
|
691
|
+
[_e, _ed],
|
|
692
|
+
[0, 0],
|
|
693
|
+
];
|
|
694
|
+
schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, UnsupportedGrantTypeException$1);
|
|
695
|
+
var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
696
|
+
schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, SSOOIDCServiceException$1);
|
|
697
|
+
var CreateToken = [
|
|
698
|
+
9,
|
|
699
|
+
n0,
|
|
700
|
+
_CT,
|
|
701
|
+
{
|
|
702
|
+
[_h]: ["POST", "/token", 200],
|
|
703
|
+
},
|
|
704
|
+
() => CreateTokenRequest,
|
|
705
|
+
() => CreateTokenResponse,
|
|
706
|
+
];
|
|
707
|
+
var CreateTokenWithIAM = [
|
|
708
|
+
9,
|
|
709
|
+
n0,
|
|
710
|
+
_CTWIAM,
|
|
711
|
+
{
|
|
712
|
+
[_h]: ["POST", "/token?aws_iam=t", 200],
|
|
713
|
+
},
|
|
714
|
+
() => CreateTokenWithIAMRequest,
|
|
715
|
+
() => CreateTokenWithIAMResponse,
|
|
716
|
+
];
|
|
717
|
+
var RegisterClient = [
|
|
718
|
+
9,
|
|
719
|
+
n0,
|
|
720
|
+
_RC,
|
|
721
|
+
{
|
|
722
|
+
[_h]: ["POST", "/client/register", 200],
|
|
723
|
+
},
|
|
724
|
+
() => RegisterClientRequest,
|
|
725
|
+
() => RegisterClientResponse,
|
|
726
|
+
];
|
|
727
|
+
var StartDeviceAuthorization = [
|
|
728
|
+
9,
|
|
729
|
+
n0,
|
|
730
|
+
_SDA,
|
|
731
|
+
{
|
|
732
|
+
[_h]: ["POST", "/device_authorization", 200],
|
|
733
|
+
},
|
|
734
|
+
() => StartDeviceAuthorizationRequest,
|
|
735
|
+
() => StartDeviceAuthorizationResponse,
|
|
736
|
+
];
|
|
819
737
|
|
|
820
738
|
class CreateTokenCommand extends smithyClient.Command
|
|
821
739
|
.classBuilder()
|
|
822
740
|
.ep(commonParams)
|
|
823
741
|
.m(function (Command, cs, config, o) {
|
|
824
|
-
return [
|
|
825
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
826
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
827
|
-
];
|
|
742
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
828
743
|
})
|
|
829
744
|
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
830
745
|
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
831
|
-
.
|
|
832
|
-
.ser(se_CreateTokenCommand)
|
|
833
|
-
.de(de_CreateTokenCommand)
|
|
746
|
+
.sc(CreateToken)
|
|
834
747
|
.build() {
|
|
835
748
|
}
|
|
836
749
|
|
|
@@ -838,16 +751,11 @@ class CreateTokenWithIAMCommand extends smithyClient.Command
|
|
|
838
751
|
.classBuilder()
|
|
839
752
|
.ep(commonParams)
|
|
840
753
|
.m(function (Command, cs, config, o) {
|
|
841
|
-
return [
|
|
842
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
843
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
844
|
-
];
|
|
754
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
845
755
|
})
|
|
846
756
|
.s("AWSSSOOIDCService", "CreateTokenWithIAM", {})
|
|
847
757
|
.n("SSOOIDCClient", "CreateTokenWithIAMCommand")
|
|
848
|
-
.
|
|
849
|
-
.ser(se_CreateTokenWithIAMCommand)
|
|
850
|
-
.de(de_CreateTokenWithIAMCommand)
|
|
758
|
+
.sc(CreateTokenWithIAM)
|
|
851
759
|
.build() {
|
|
852
760
|
}
|
|
853
761
|
|
|
@@ -855,16 +763,11 @@ class RegisterClientCommand extends smithyClient.Command
|
|
|
855
763
|
.classBuilder()
|
|
856
764
|
.ep(commonParams)
|
|
857
765
|
.m(function (Command, cs, config, o) {
|
|
858
|
-
return [
|
|
859
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
860
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
861
|
-
];
|
|
766
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
862
767
|
})
|
|
863
768
|
.s("AWSSSOOIDCService", "RegisterClient", {})
|
|
864
769
|
.n("SSOOIDCClient", "RegisterClientCommand")
|
|
865
|
-
.
|
|
866
|
-
.ser(se_RegisterClientCommand)
|
|
867
|
-
.de(de_RegisterClientCommand)
|
|
770
|
+
.sc(RegisterClient)
|
|
868
771
|
.build() {
|
|
869
772
|
}
|
|
870
773
|
|
|
@@ -872,16 +775,11 @@ class StartDeviceAuthorizationCommand extends smithyClient.Command
|
|
|
872
775
|
.classBuilder()
|
|
873
776
|
.ep(commonParams)
|
|
874
777
|
.m(function (Command, cs, config, o) {
|
|
875
|
-
return [
|
|
876
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
877
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
878
|
-
];
|
|
778
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
879
779
|
})
|
|
880
780
|
.s("AWSSSOOIDCService", "StartDeviceAuthorization", {})
|
|
881
781
|
.n("SSOOIDCClient", "StartDeviceAuthorizationCommand")
|
|
882
|
-
.
|
|
883
|
-
.ser(se_StartDeviceAuthorizationCommand)
|
|
884
|
-
.de(de_StartDeviceAuthorizationCommand)
|
|
782
|
+
.sc(StartDeviceAuthorization)
|
|
885
783
|
.build() {
|
|
886
784
|
}
|
|
887
785
|
|
|
@@ -903,32 +801,26 @@ Object.defineProperty(exports, "__Client", {
|
|
|
903
801
|
enumerable: true,
|
|
904
802
|
get: function () { return smithyClient.Client; }
|
|
905
803
|
});
|
|
906
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
804
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
907
805
|
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
908
|
-
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
806
|
+
exports.AuthorizationPendingException = AuthorizationPendingException$1;
|
|
909
807
|
exports.CreateTokenCommand = CreateTokenCommand;
|
|
910
|
-
exports.CreateTokenRequestFilterSensitiveLog = CreateTokenRequestFilterSensitiveLog;
|
|
911
|
-
exports.CreateTokenResponseFilterSensitiveLog = CreateTokenResponseFilterSensitiveLog;
|
|
912
808
|
exports.CreateTokenWithIAMCommand = CreateTokenWithIAMCommand;
|
|
913
|
-
exports.
|
|
914
|
-
exports.
|
|
915
|
-
exports.
|
|
916
|
-
exports.
|
|
917
|
-
exports.
|
|
918
|
-
exports.
|
|
919
|
-
exports.
|
|
920
|
-
exports.InvalidRedirectUriException = InvalidRedirectUriException;
|
|
921
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
809
|
+
exports.ExpiredTokenException = ExpiredTokenException$1;
|
|
810
|
+
exports.InternalServerException = InternalServerException$1;
|
|
811
|
+
exports.InvalidClientException = InvalidClientException$1;
|
|
812
|
+
exports.InvalidClientMetadataException = InvalidClientMetadataException$1;
|
|
813
|
+
exports.InvalidGrantException = InvalidGrantException$1;
|
|
814
|
+
exports.InvalidRedirectUriException = InvalidRedirectUriException$1;
|
|
815
|
+
exports.InvalidRequestException = InvalidRequestException$1;
|
|
922
816
|
exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
|
|
923
|
-
exports.InvalidRequestRegionException = InvalidRequestRegionException;
|
|
924
|
-
exports.InvalidScopeException = InvalidScopeException;
|
|
817
|
+
exports.InvalidRequestRegionException = InvalidRequestRegionException$1;
|
|
818
|
+
exports.InvalidScopeException = InvalidScopeException$1;
|
|
925
819
|
exports.RegisterClientCommand = RegisterClientCommand;
|
|
926
|
-
exports.RegisterClientResponseFilterSensitiveLog = RegisterClientResponseFilterSensitiveLog;
|
|
927
820
|
exports.SSOOIDC = SSOOIDC;
|
|
928
821
|
exports.SSOOIDCClient = SSOOIDCClient;
|
|
929
|
-
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
930
|
-
exports.SlowDownException = SlowDownException;
|
|
822
|
+
exports.SSOOIDCServiceException = SSOOIDCServiceException$1;
|
|
823
|
+
exports.SlowDownException = SlowDownException$1;
|
|
931
824
|
exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
|
|
932
|
-
exports.
|
|
933
|
-
exports.
|
|
934
|
-
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
825
|
+
exports.UnauthorizedClientException = UnauthorizedClientException$1;
|
|
826
|
+
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException$1;
|