@aws-sdk/client-sso-oidc 3.957.0 → 3.958.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/README.md +1 -9
- package/dist-cjs/auth/httpAuthSchemeProvider.js +21 -16
- package/dist-cjs/index.js +75 -127
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +21 -16
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +75 -127
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -47,10 +47,8 @@ Guide</i>.</p>
|
|
|
47
47
|
IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
|
|
48
48
|
|
|
49
49
|
## Installing
|
|
50
|
-
|
|
51
50
|
To install this package, simply type add or install @aws-sdk/client-sso-oidc
|
|
52
51
|
using your favorite package manager:
|
|
53
|
-
|
|
54
52
|
- `npm install @aws-sdk/client-sso-oidc`
|
|
55
53
|
- `yarn add @aws-sdk/client-sso-oidc`
|
|
56
54
|
- `pnpm add @aws-sdk/client-sso-oidc`
|
|
@@ -86,9 +84,7 @@ To send a request, you:
|
|
|
86
84
|
// a client can be shared by different commands.
|
|
87
85
|
const client = new SSOOIDCClient({ region: "REGION" });
|
|
88
86
|
|
|
89
|
-
const params = {
|
|
90
|
-
/** input parameters */
|
|
91
|
-
};
|
|
87
|
+
const params = { /** input parameters */ };
|
|
92
88
|
const command = new CreateTokenCommand(params);
|
|
93
89
|
```
|
|
94
90
|
|
|
@@ -247,7 +243,6 @@ CreateToken
|
|
|
247
243
|
</summary>
|
|
248
244
|
|
|
249
245
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso-oidc/command/CreateTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/CreateTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/CreateTokenCommandOutput/)
|
|
250
|
-
|
|
251
246
|
</details>
|
|
252
247
|
<details>
|
|
253
248
|
<summary>
|
|
@@ -255,7 +250,6 @@ CreateTokenWithIAM
|
|
|
255
250
|
</summary>
|
|
256
251
|
|
|
257
252
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso-oidc/command/CreateTokenWithIAMCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/CreateTokenWithIAMCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/CreateTokenWithIAMCommandOutput/)
|
|
258
|
-
|
|
259
253
|
</details>
|
|
260
254
|
<details>
|
|
261
255
|
<summary>
|
|
@@ -263,7 +257,6 @@ RegisterClient
|
|
|
263
257
|
</summary>
|
|
264
258
|
|
|
265
259
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso-oidc/command/RegisterClientCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/RegisterClientCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/RegisterClientCommandOutput/)
|
|
266
|
-
|
|
267
260
|
</details>
|
|
268
261
|
<details>
|
|
269
262
|
<summary>
|
|
@@ -271,5 +264,4 @@ StartDeviceAuthorization
|
|
|
271
264
|
</summary>
|
|
272
265
|
|
|
273
266
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso-oidc/command/StartDeviceAuthorizationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/StartDeviceAuthorizationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso-oidc/Interface/StartDeviceAuthorizationCommandOutput/)
|
|
274
|
-
|
|
275
267
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
|
@@ -36,18 +35,24 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
36
35
|
const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
37
36
|
const options = [];
|
|
38
37
|
switch (authParameters.operation) {
|
|
39
|
-
case "CreateToken":
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
case "CreateToken":
|
|
39
|
+
{
|
|
40
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
;
|
|
44
|
+
case "RegisterClient":
|
|
45
|
+
{
|
|
46
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
;
|
|
50
|
+
case "StartDeviceAuthorization":
|
|
51
|
+
{
|
|
52
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
;
|
|
51
56
|
default: {
|
|
52
57
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
53
58
|
}
|
package/dist-cjs/index.js
CHANGED
|
@@ -438,200 +438,148 @@ var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
|
438
438
|
var IdToken = [0, n0, _IT, 8, 0];
|
|
439
439
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
440
440
|
var SubjectToken = [0, n0, _ST, 8, 0];
|
|
441
|
-
var AccessDeniedException$ = [
|
|
442
|
-
-3,
|
|
443
|
-
n0,
|
|
444
|
-
_ADE,
|
|
441
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
445
442
|
{ [_e]: _c, [_hE]: 400 },
|
|
446
443
|
[_e, _r, _ed],
|
|
447
|
-
[0, 0, 0]
|
|
444
|
+
[0, 0, 0]
|
|
448
445
|
];
|
|
449
446
|
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
450
|
-
var AuthorizationPendingException$ = [
|
|
451
|
-
-3,
|
|
452
|
-
n0,
|
|
453
|
-
_APE,
|
|
447
|
+
var AuthorizationPendingException$ = [-3, n0, _APE,
|
|
454
448
|
{ [_e]: _c, [_hE]: 400 },
|
|
455
449
|
[_e, _ed],
|
|
456
|
-
[0, 0]
|
|
450
|
+
[0, 0]
|
|
457
451
|
];
|
|
458
452
|
schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
459
|
-
var AwsAdditionalDetails$ = [3, n0, _AAD,
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
453
|
+
var AwsAdditionalDetails$ = [3, n0, _AAD,
|
|
454
|
+
0,
|
|
455
|
+
[_iC],
|
|
456
|
+
[0]
|
|
457
|
+
];
|
|
458
|
+
var CreateTokenRequest$ = [3, n0, _CTR,
|
|
464
459
|
0,
|
|
465
460
|
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
|
466
|
-
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]]
|
|
461
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]]
|
|
467
462
|
];
|
|
468
|
-
var CreateTokenResponse$ = [
|
|
469
|
-
3,
|
|
470
|
-
n0,
|
|
471
|
-
_CTRr,
|
|
463
|
+
var CreateTokenResponse$ = [3, n0, _CTRr,
|
|
472
464
|
0,
|
|
473
465
|
[_aT, _tT, _eI, _rT, _iT],
|
|
474
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
466
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
475
467
|
];
|
|
476
|
-
var CreateTokenWithIAMRequest$ = [
|
|
477
|
-
3,
|
|
478
|
-
n0,
|
|
479
|
-
_CTWIAMR,
|
|
468
|
+
var CreateTokenWithIAMRequest$ = [3, n0, _CTWIAMR,
|
|
480
469
|
0,
|
|
481
470
|
[_cI, _gT, _co, _rT, _a, _s, _rU, _sT, _sTT, _rTT, _cV],
|
|
482
|
-
[
|
|
483
|
-
0,
|
|
484
|
-
0,
|
|
485
|
-
0,
|
|
486
|
-
[() => RefreshToken, 0],
|
|
487
|
-
[() => Assertion, 0],
|
|
488
|
-
64 | 0,
|
|
489
|
-
0,
|
|
490
|
-
[() => SubjectToken, 0],
|
|
491
|
-
0,
|
|
492
|
-
0,
|
|
493
|
-
[() => CodeVerifier, 0],
|
|
494
|
-
],
|
|
471
|
+
[0, 0, 0, [() => RefreshToken, 0], [() => Assertion, 0], 64 | 0, 0, [() => SubjectToken, 0], 0, 0, [() => CodeVerifier, 0]]
|
|
495
472
|
];
|
|
496
|
-
var CreateTokenWithIAMResponse$ = [
|
|
497
|
-
3,
|
|
498
|
-
n0,
|
|
499
|
-
_CTWIAMRr,
|
|
473
|
+
var CreateTokenWithIAMResponse$ = [3, n0, _CTWIAMRr,
|
|
500
474
|
0,
|
|
501
475
|
[_aT, _tT, _eI, _rT, _iT, _iTT, _s, _aAD],
|
|
502
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails$]
|
|
476
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails$]
|
|
477
|
+
];
|
|
478
|
+
var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
479
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
480
|
+
[_e, _ed],
|
|
481
|
+
[0, 0]
|
|
503
482
|
];
|
|
504
|
-
var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
505
483
|
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
506
|
-
var InternalServerException$ = [-3, n0, _ISE,
|
|
484
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
485
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
486
|
+
[_e, _ed],
|
|
487
|
+
[0, 0]
|
|
488
|
+
];
|
|
507
489
|
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
508
|
-
var InvalidClientException$ = [-3, n0, _ICE,
|
|
490
|
+
var InvalidClientException$ = [-3, n0, _ICE,
|
|
491
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
492
|
+
[_e, _ed],
|
|
493
|
+
[0, 0]
|
|
494
|
+
];
|
|
509
495
|
schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
|
|
510
|
-
var InvalidClientMetadataException$ = [
|
|
511
|
-
-3,
|
|
512
|
-
n0,
|
|
513
|
-
_ICME,
|
|
496
|
+
var InvalidClientMetadataException$ = [-3, n0, _ICME,
|
|
514
497
|
{ [_e]: _c, [_hE]: 400 },
|
|
515
498
|
[_e, _ed],
|
|
516
|
-
[0, 0]
|
|
499
|
+
[0, 0]
|
|
517
500
|
];
|
|
518
501
|
schema.TypeRegistry.for(n0).registerError(InvalidClientMetadataException$, InvalidClientMetadataException);
|
|
519
|
-
var InvalidGrantException$ = [-3, n0, _IGE,
|
|
502
|
+
var InvalidGrantException$ = [-3, n0, _IGE,
|
|
503
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
504
|
+
[_e, _ed],
|
|
505
|
+
[0, 0]
|
|
506
|
+
];
|
|
520
507
|
schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
|
|
521
|
-
var InvalidRedirectUriException$ = [
|
|
522
|
-
-3,
|
|
523
|
-
n0,
|
|
524
|
-
_IRUE,
|
|
508
|
+
var InvalidRedirectUriException$ = [-3, n0, _IRUE,
|
|
525
509
|
{ [_e]: _c, [_hE]: 400 },
|
|
526
510
|
[_e, _ed],
|
|
527
|
-
[0, 0]
|
|
511
|
+
[0, 0]
|
|
528
512
|
];
|
|
529
513
|
schema.TypeRegistry.for(n0).registerError(InvalidRedirectUriException$, InvalidRedirectUriException);
|
|
530
|
-
var InvalidRequestException$ = [
|
|
531
|
-
-3,
|
|
532
|
-
n0,
|
|
533
|
-
_IRE,
|
|
514
|
+
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
534
515
|
{ [_e]: _c, [_hE]: 400 },
|
|
535
516
|
[_e, _r, _ed],
|
|
536
|
-
[0, 0, 0]
|
|
517
|
+
[0, 0, 0]
|
|
537
518
|
];
|
|
538
519
|
schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
539
|
-
var InvalidRequestRegionException$ = [
|
|
540
|
-
-3,
|
|
541
|
-
n0,
|
|
542
|
-
_IRRE,
|
|
520
|
+
var InvalidRequestRegionException$ = [-3, n0, _IRRE,
|
|
543
521
|
{ [_e]: _c, [_hE]: 400 },
|
|
544
522
|
[_e, _ed, _en, _re],
|
|
545
|
-
[0, 0, 0, 0]
|
|
523
|
+
[0, 0, 0, 0]
|
|
546
524
|
];
|
|
547
525
|
schema.TypeRegistry.for(n0).registerError(InvalidRequestRegionException$, InvalidRequestRegionException);
|
|
548
|
-
var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
526
|
+
var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
527
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
528
|
+
[_e, _ed],
|
|
529
|
+
[0, 0]
|
|
530
|
+
];
|
|
549
531
|
schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
|
|
550
|
-
var RegisterClientRequest$ = [
|
|
551
|
-
3,
|
|
552
|
-
n0,
|
|
553
|
-
_RCR,
|
|
532
|
+
var RegisterClientRequest$ = [3, n0, _RCR,
|
|
554
533
|
0,
|
|
555
534
|
[_cN, _cT, _sc, _rUe, _gTr, _iU, _eAA],
|
|
556
|
-
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0]
|
|
535
|
+
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0]
|
|
557
536
|
];
|
|
558
|
-
var RegisterClientResponse$ = [
|
|
559
|
-
3,
|
|
560
|
-
n0,
|
|
561
|
-
_RCRe,
|
|
537
|
+
var RegisterClientResponse$ = [3, n0, _RCRe,
|
|
562
538
|
0,
|
|
563
539
|
[_cI, _cS, _cIIA, _cSEA, _aE, _tE],
|
|
564
|
-
[0, [() => ClientSecret, 0], 1, 1, 0, 0]
|
|
540
|
+
[0, [() => ClientSecret, 0], 1, 1, 0, 0]
|
|
541
|
+
];
|
|
542
|
+
var SlowDownException$ = [-3, n0, _SDE,
|
|
543
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
544
|
+
[_e, _ed],
|
|
545
|
+
[0, 0]
|
|
565
546
|
];
|
|
566
|
-
var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
567
547
|
schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
|
|
568
|
-
var StartDeviceAuthorizationRequest$ = [
|
|
569
|
-
3,
|
|
570
|
-
n0,
|
|
571
|
-
_SDAR,
|
|
548
|
+
var StartDeviceAuthorizationRequest$ = [3, n0, _SDAR,
|
|
572
549
|
0,
|
|
573
550
|
[_cI, _cS, _sU],
|
|
574
|
-
[0, [() => ClientSecret, 0], 0]
|
|
551
|
+
[0, [() => ClientSecret, 0], 0]
|
|
575
552
|
];
|
|
576
|
-
var StartDeviceAuthorizationResponse$ = [
|
|
577
|
-
3,
|
|
578
|
-
n0,
|
|
579
|
-
_SDARt,
|
|
553
|
+
var StartDeviceAuthorizationResponse$ = [3, n0, _SDARt,
|
|
580
554
|
0,
|
|
581
555
|
[_dC, _uC, _vU, _vUC, _eI, _i],
|
|
582
|
-
[0, 0, 0, 0, 1, 1]
|
|
556
|
+
[0, 0, 0, 0, 1, 1]
|
|
583
557
|
];
|
|
584
|
-
var UnauthorizedClientException$ = [
|
|
585
|
-
-3,
|
|
586
|
-
n0,
|
|
587
|
-
_UCE,
|
|
558
|
+
var UnauthorizedClientException$ = [-3, n0, _UCE,
|
|
588
559
|
{ [_e]: _c, [_hE]: 400 },
|
|
589
560
|
[_e, _ed],
|
|
590
|
-
[0, 0]
|
|
561
|
+
[0, 0]
|
|
591
562
|
];
|
|
592
563
|
schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
593
|
-
var UnsupportedGrantTypeException$ = [
|
|
594
|
-
-3,
|
|
595
|
-
n0,
|
|
596
|
-
_UGTE,
|
|
564
|
+
var UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
|
|
597
565
|
{ [_e]: _c, [_hE]: 400 },
|
|
598
566
|
[_e, _ed],
|
|
599
|
-
[0, 0]
|
|
567
|
+
[0, 0]
|
|
600
568
|
];
|
|
601
569
|
schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
602
570
|
var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
603
571
|
schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
604
|
-
var CreateToken$ = [
|
|
605
|
-
|
|
606
|
-
n0,
|
|
607
|
-
_CT,
|
|
608
|
-
{ [_h]: ["POST", "/token", 200] },
|
|
609
|
-
() => CreateTokenRequest$,
|
|
610
|
-
() => CreateTokenResponse$,
|
|
572
|
+
var CreateToken$ = [9, n0, _CT,
|
|
573
|
+
{ [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$
|
|
611
574
|
];
|
|
612
|
-
var CreateTokenWithIAM$ = [
|
|
613
|
-
|
|
614
|
-
n0,
|
|
615
|
-
_CTWIAM,
|
|
616
|
-
{ [_h]: ["POST", "/token?aws_iam=t", 200] },
|
|
617
|
-
() => CreateTokenWithIAMRequest$,
|
|
618
|
-
() => CreateTokenWithIAMResponse$,
|
|
575
|
+
var CreateTokenWithIAM$ = [9, n0, _CTWIAM,
|
|
576
|
+
{ [_h]: ["POST", "/token?aws_iam=t", 200] }, () => CreateTokenWithIAMRequest$, () => CreateTokenWithIAMResponse$
|
|
619
577
|
];
|
|
620
|
-
var RegisterClient$ = [
|
|
621
|
-
|
|
622
|
-
n0,
|
|
623
|
-
_RC,
|
|
624
|
-
{ [_h]: ["POST", "/client/register", 200] },
|
|
625
|
-
() => RegisterClientRequest$,
|
|
626
|
-
() => RegisterClientResponse$,
|
|
578
|
+
var RegisterClient$ = [9, n0, _RC,
|
|
579
|
+
{ [_h]: ["POST", "/client/register", 200] }, () => RegisterClientRequest$, () => RegisterClientResponse$
|
|
627
580
|
];
|
|
628
|
-
var StartDeviceAuthorization$ = [
|
|
629
|
-
|
|
630
|
-
n0,
|
|
631
|
-
_SDA,
|
|
632
|
-
{ [_h]: ["POST", "/device_authorization", 200] },
|
|
633
|
-
() => StartDeviceAuthorizationRequest$,
|
|
634
|
-
() => StartDeviceAuthorizationResponse$,
|
|
581
|
+
var StartDeviceAuthorization$ = [9, n0, _SDA,
|
|
582
|
+
{ [_h]: ["POST", "/device_authorization", 200] }, () => StartDeviceAuthorizationRequest$, () => StartDeviceAuthorizationResponse$
|
|
635
583
|
];
|
|
636
584
|
|
|
637
585
|
class CreateTokenCommand extends smithyClient.Command
|
|
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultsMode,
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
28
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
29
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
30
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
|
|
|
34
34
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
35
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
36
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
38
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
39
38
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
40
|
-
region: config?.region ??
|
|
41
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
42
40
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
41
|
retryMode: config?.retryMode ??
|
|
44
42
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
|
3
3
|
export const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
6
|
-
region:
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
})(),
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
@@ -32,18 +31,24 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
32
31
|
export const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
33
32
|
const options = [];
|
|
34
33
|
switch (authParameters.operation) {
|
|
35
|
-
case "CreateToken":
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
case "CreateToken":
|
|
35
|
+
{
|
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
;
|
|
40
|
+
case "RegisterClient":
|
|
41
|
+
{
|
|
42
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
;
|
|
46
|
+
case "StartDeviceAuthorization":
|
|
47
|
+
{
|
|
48
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
;
|
|
47
52
|
default: {
|
|
48
53
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
49
54
|
}
|
|
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
20
|
defaultsMode,
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
25
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import {
|
|
4
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
30
30
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
31
31
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
35
34
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
36
|
-
region: config?.region ??
|
|
37
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
35
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
38
36
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
39
37
|
retryMode: config?.retryMode ??
|
|
40
38
|
loadNodeConfig({
|
|
@@ -89,165 +89,133 @@ var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
|
89
89
|
var IdToken = [0, n0, _IT, 8, 0];
|
|
90
90
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
91
91
|
var SubjectToken = [0, n0, _ST, 8, 0];
|
|
92
|
-
export var AccessDeniedException$ = [
|
|
93
|
-
-3,
|
|
94
|
-
n0,
|
|
95
|
-
_ADE,
|
|
92
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
96
93
|
{ [_e]: _c, [_hE]: 400 },
|
|
97
94
|
[_e, _r, _ed],
|
|
98
|
-
[0, 0, 0]
|
|
95
|
+
[0, 0, 0]
|
|
99
96
|
];
|
|
100
97
|
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
101
|
-
export var AuthorizationPendingException$ = [
|
|
102
|
-
-3,
|
|
103
|
-
n0,
|
|
104
|
-
_APE,
|
|
98
|
+
export var AuthorizationPendingException$ = [-3, n0, _APE,
|
|
105
99
|
{ [_e]: _c, [_hE]: 400 },
|
|
106
100
|
[_e, _ed],
|
|
107
|
-
[0, 0]
|
|
101
|
+
[0, 0]
|
|
108
102
|
];
|
|
109
103
|
TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
110
|
-
export var AwsAdditionalDetails$ = [3, n0, _AAD,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
104
|
+
export var AwsAdditionalDetails$ = [3, n0, _AAD,
|
|
105
|
+
0,
|
|
106
|
+
[_iC],
|
|
107
|
+
[0]
|
|
108
|
+
];
|
|
109
|
+
export var CreateTokenRequest$ = [3, n0, _CTR,
|
|
115
110
|
0,
|
|
116
111
|
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
|
117
|
-
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]]
|
|
112
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]]
|
|
118
113
|
];
|
|
119
|
-
export var CreateTokenResponse$ = [
|
|
120
|
-
3,
|
|
121
|
-
n0,
|
|
122
|
-
_CTRr,
|
|
114
|
+
export var CreateTokenResponse$ = [3, n0, _CTRr,
|
|
123
115
|
0,
|
|
124
116
|
[_aT, _tT, _eI, _rT, _iT],
|
|
125
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
117
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
126
118
|
];
|
|
127
|
-
export var CreateTokenWithIAMRequest$ = [
|
|
128
|
-
3,
|
|
129
|
-
n0,
|
|
130
|
-
_CTWIAMR,
|
|
119
|
+
export var CreateTokenWithIAMRequest$ = [3, n0, _CTWIAMR,
|
|
131
120
|
0,
|
|
132
121
|
[_cI, _gT, _co, _rT, _a, _s, _rU, _sT, _sTT, _rTT, _cV],
|
|
133
|
-
[
|
|
134
|
-
0,
|
|
135
|
-
0,
|
|
136
|
-
0,
|
|
137
|
-
[() => RefreshToken, 0],
|
|
138
|
-
[() => Assertion, 0],
|
|
139
|
-
64 | 0,
|
|
140
|
-
0,
|
|
141
|
-
[() => SubjectToken, 0],
|
|
142
|
-
0,
|
|
143
|
-
0,
|
|
144
|
-
[() => CodeVerifier, 0],
|
|
145
|
-
],
|
|
122
|
+
[0, 0, 0, [() => RefreshToken, 0], [() => Assertion, 0], 64 | 0, 0, [() => SubjectToken, 0], 0, 0, [() => CodeVerifier, 0]]
|
|
146
123
|
];
|
|
147
|
-
export var CreateTokenWithIAMResponse$ = [
|
|
148
|
-
3,
|
|
149
|
-
n0,
|
|
150
|
-
_CTWIAMRr,
|
|
124
|
+
export var CreateTokenWithIAMResponse$ = [3, n0, _CTWIAMRr,
|
|
151
125
|
0,
|
|
152
126
|
[_aT, _tT, _eI, _rT, _iT, _iTT, _s, _aAD],
|
|
153
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails$]
|
|
127
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails$]
|
|
128
|
+
];
|
|
129
|
+
export var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
130
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
131
|
+
[_e, _ed],
|
|
132
|
+
[0, 0]
|
|
154
133
|
];
|
|
155
|
-
export var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
156
134
|
TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
157
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
135
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
136
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
137
|
+
[_e, _ed],
|
|
138
|
+
[0, 0]
|
|
139
|
+
];
|
|
158
140
|
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
159
|
-
export var InvalidClientException$ = [-3, n0, _ICE,
|
|
141
|
+
export var InvalidClientException$ = [-3, n0, _ICE,
|
|
142
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
143
|
+
[_e, _ed],
|
|
144
|
+
[0, 0]
|
|
145
|
+
];
|
|
160
146
|
TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
|
|
161
|
-
export var InvalidClientMetadataException$ = [
|
|
162
|
-
-3,
|
|
163
|
-
n0,
|
|
164
|
-
_ICME,
|
|
147
|
+
export var InvalidClientMetadataException$ = [-3, n0, _ICME,
|
|
165
148
|
{ [_e]: _c, [_hE]: 400 },
|
|
166
149
|
[_e, _ed],
|
|
167
|
-
[0, 0]
|
|
150
|
+
[0, 0]
|
|
168
151
|
];
|
|
169
152
|
TypeRegistry.for(n0).registerError(InvalidClientMetadataException$, InvalidClientMetadataException);
|
|
170
|
-
export var InvalidGrantException$ = [-3, n0, _IGE,
|
|
153
|
+
export var InvalidGrantException$ = [-3, n0, _IGE,
|
|
154
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
155
|
+
[_e, _ed],
|
|
156
|
+
[0, 0]
|
|
157
|
+
];
|
|
171
158
|
TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
|
|
172
|
-
export var InvalidRedirectUriException$ = [
|
|
173
|
-
-3,
|
|
174
|
-
n0,
|
|
175
|
-
_IRUE,
|
|
159
|
+
export var InvalidRedirectUriException$ = [-3, n0, _IRUE,
|
|
176
160
|
{ [_e]: _c, [_hE]: 400 },
|
|
177
161
|
[_e, _ed],
|
|
178
|
-
[0, 0]
|
|
162
|
+
[0, 0]
|
|
179
163
|
];
|
|
180
164
|
TypeRegistry.for(n0).registerError(InvalidRedirectUriException$, InvalidRedirectUriException);
|
|
181
|
-
export var InvalidRequestException$ = [
|
|
182
|
-
-3,
|
|
183
|
-
n0,
|
|
184
|
-
_IRE,
|
|
165
|
+
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
185
166
|
{ [_e]: _c, [_hE]: 400 },
|
|
186
167
|
[_e, _r, _ed],
|
|
187
|
-
[0, 0, 0]
|
|
168
|
+
[0, 0, 0]
|
|
188
169
|
];
|
|
189
170
|
TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
190
|
-
export var InvalidRequestRegionException$ = [
|
|
191
|
-
-3,
|
|
192
|
-
n0,
|
|
193
|
-
_IRRE,
|
|
171
|
+
export var InvalidRequestRegionException$ = [-3, n0, _IRRE,
|
|
194
172
|
{ [_e]: _c, [_hE]: 400 },
|
|
195
173
|
[_e, _ed, _en, _re],
|
|
196
|
-
[0, 0, 0, 0]
|
|
174
|
+
[0, 0, 0, 0]
|
|
197
175
|
];
|
|
198
176
|
TypeRegistry.for(n0).registerError(InvalidRequestRegionException$, InvalidRequestRegionException);
|
|
199
|
-
export var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
177
|
+
export var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
178
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
179
|
+
[_e, _ed],
|
|
180
|
+
[0, 0]
|
|
181
|
+
];
|
|
200
182
|
TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
|
|
201
|
-
export var RegisterClientRequest$ = [
|
|
202
|
-
3,
|
|
203
|
-
n0,
|
|
204
|
-
_RCR,
|
|
183
|
+
export var RegisterClientRequest$ = [3, n0, _RCR,
|
|
205
184
|
0,
|
|
206
185
|
[_cN, _cT, _sc, _rUe, _gTr, _iU, _eAA],
|
|
207
|
-
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0]
|
|
186
|
+
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0]
|
|
208
187
|
];
|
|
209
|
-
export var RegisterClientResponse$ = [
|
|
210
|
-
3,
|
|
211
|
-
n0,
|
|
212
|
-
_RCRe,
|
|
188
|
+
export var RegisterClientResponse$ = [3, n0, _RCRe,
|
|
213
189
|
0,
|
|
214
190
|
[_cI, _cS, _cIIA, _cSEA, _aE, _tE],
|
|
215
|
-
[0, [() => ClientSecret, 0], 1, 1, 0, 0]
|
|
191
|
+
[0, [() => ClientSecret, 0], 1, 1, 0, 0]
|
|
192
|
+
];
|
|
193
|
+
export var SlowDownException$ = [-3, n0, _SDE,
|
|
194
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
195
|
+
[_e, _ed],
|
|
196
|
+
[0, 0]
|
|
216
197
|
];
|
|
217
|
-
export var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
218
198
|
TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
|
|
219
|
-
export var StartDeviceAuthorizationRequest$ = [
|
|
220
|
-
3,
|
|
221
|
-
n0,
|
|
222
|
-
_SDAR,
|
|
199
|
+
export var StartDeviceAuthorizationRequest$ = [3, n0, _SDAR,
|
|
223
200
|
0,
|
|
224
201
|
[_cI, _cS, _sU],
|
|
225
|
-
[0, [() => ClientSecret, 0], 0]
|
|
202
|
+
[0, [() => ClientSecret, 0], 0]
|
|
226
203
|
];
|
|
227
|
-
export var StartDeviceAuthorizationResponse$ = [
|
|
228
|
-
3,
|
|
229
|
-
n0,
|
|
230
|
-
_SDARt,
|
|
204
|
+
export var StartDeviceAuthorizationResponse$ = [3, n0, _SDARt,
|
|
231
205
|
0,
|
|
232
206
|
[_dC, _uC, _vU, _vUC, _eI, _i],
|
|
233
|
-
[0, 0, 0, 0, 1, 1]
|
|
207
|
+
[0, 0, 0, 0, 1, 1]
|
|
234
208
|
];
|
|
235
|
-
export var UnauthorizedClientException$ = [
|
|
236
|
-
-3,
|
|
237
|
-
n0,
|
|
238
|
-
_UCE,
|
|
209
|
+
export var UnauthorizedClientException$ = [-3, n0, _UCE,
|
|
239
210
|
{ [_e]: _c, [_hE]: 400 },
|
|
240
211
|
[_e, _ed],
|
|
241
|
-
[0, 0]
|
|
212
|
+
[0, 0]
|
|
242
213
|
];
|
|
243
214
|
TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
244
|
-
export var UnsupportedGrantTypeException$ = [
|
|
245
|
-
-3,
|
|
246
|
-
n0,
|
|
247
|
-
_UGTE,
|
|
215
|
+
export var UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
|
|
248
216
|
{ [_e]: _c, [_hE]: 400 },
|
|
249
217
|
[_e, _ed],
|
|
250
|
-
[0, 0]
|
|
218
|
+
[0, 0]
|
|
251
219
|
];
|
|
252
220
|
TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
253
221
|
export var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
@@ -255,35 +223,15 @@ TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceExce
|
|
|
255
223
|
var GrantTypes = 64 | 0;
|
|
256
224
|
var RedirectUris = 64 | 0;
|
|
257
225
|
var Scopes = 64 | 0;
|
|
258
|
-
export var CreateToken$ = [
|
|
259
|
-
|
|
260
|
-
n0,
|
|
261
|
-
_CT,
|
|
262
|
-
{ [_h]: ["POST", "/token", 200] },
|
|
263
|
-
() => CreateTokenRequest$,
|
|
264
|
-
() => CreateTokenResponse$,
|
|
226
|
+
export var CreateToken$ = [9, n0, _CT,
|
|
227
|
+
{ [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$
|
|
265
228
|
];
|
|
266
|
-
export var CreateTokenWithIAM$ = [
|
|
267
|
-
|
|
268
|
-
n0,
|
|
269
|
-
_CTWIAM,
|
|
270
|
-
{ [_h]: ["POST", "/token?aws_iam=t", 200] },
|
|
271
|
-
() => CreateTokenWithIAMRequest$,
|
|
272
|
-
() => CreateTokenWithIAMResponse$,
|
|
229
|
+
export var CreateTokenWithIAM$ = [9, n0, _CTWIAM,
|
|
230
|
+
{ [_h]: ["POST", "/token?aws_iam=t", 200] }, () => CreateTokenWithIAMRequest$, () => CreateTokenWithIAMResponse$
|
|
273
231
|
];
|
|
274
|
-
export var RegisterClient$ = [
|
|
275
|
-
|
|
276
|
-
n0,
|
|
277
|
-
_RC,
|
|
278
|
-
{ [_h]: ["POST", "/client/register", 200] },
|
|
279
|
-
() => RegisterClientRequest$,
|
|
280
|
-
() => RegisterClientResponse$,
|
|
232
|
+
export var RegisterClient$ = [9, n0, _RC,
|
|
233
|
+
{ [_h]: ["POST", "/client/register", 200] }, () => RegisterClientRequest$, () => RegisterClientResponse$
|
|
281
234
|
];
|
|
282
|
-
export var StartDeviceAuthorization$ = [
|
|
283
|
-
|
|
284
|
-
n0,
|
|
285
|
-
_SDA,
|
|
286
|
-
{ [_h]: ["POST", "/device_authorization", 200] },
|
|
287
|
-
() => StartDeviceAuthorizationRequest$,
|
|
288
|
-
() => StartDeviceAuthorizationResponse$,
|
|
235
|
+
export var StartDeviceAuthorization$ = [9, n0, _SDA,
|
|
236
|
+
{ [_h]: ["POST", "/device_authorization", 200] }, () => StartDeviceAuthorizationRequest$, () => StartDeviceAuthorizationResponse$
|
|
289
237
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.958.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "3.957.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|