@aws-sdk/client-signin 3.1155.0 → 3.1157.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 +8 -2
- package/dist-cjs/index.js +120 -3
- package/dist-es/Signin.js +2 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +6 -0
- package/dist-es/commands/CreateOAuth2TokenWithTokenExchangeCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +7 -0
- package/dist-es/models/errors.js +46 -0
- package/dist-es/schemas/schemas_0.js +48 -3
- package/dist-types/Signin.d.ts +8 -2
- package/dist-types/SigninClient.d.ts +4 -4
- package/dist-types/commands/CreateOAuth2TokenCommand.d.ts +5 -59
- package/dist-types/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
- package/dist-types/commands/CreateOAuth2TokenWithTokenExchangeCommand.d.ts +96 -0
- package/dist-types/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/DeleteResourcePermissionStatementCommand.d.ts +4 -31
- package/dist-types/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -25
- package/dist-types/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +6 -40
- package/dist-types/commands/ListResourcePermissionStatementsCommand.d.ts +4 -31
- package/dist-types/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/PutResourcePermissionStatementCommand.d.ts +4 -31
- package/dist-types/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +5 -38
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -2
- package/dist-types/models/enums.d.ts +16 -9
- package/dist-types/models/errors.d.ts +63 -39
- package/dist-types/models/models_0.d.ts +113 -68
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/Signin.d.ts +17 -0
- package/dist-types/ts3.4/SigninClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CreateOAuth2TokenWithTokenExchangeCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +7 -0
- package/dist-types/ts3.4/models/errors.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript Signin Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
AWS Sign-In manages authentication for AWS services.
|
|
10
|
-
secure authentication flows for accessing AWS resources from the console and developer tools.
|
|
9
|
+
AWS Sign-In manages authentication for AWS services. It implements OAuth 2.0, providing secure token exchange and refresh capabilities.
|
|
11
10
|
|
|
12
11
|
## Installing
|
|
13
12
|
|
|
@@ -196,6 +195,13 @@ CreateOAuth2TokenWithIAM
|
|
|
196
195
|
</details>
|
|
197
196
|
<details>
|
|
198
197
|
<summary>
|
|
198
|
+
CreateOAuth2TokenWithTokenExchange
|
|
199
|
+
</summary>
|
|
200
|
+
|
|
201
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/CreateOAuth2TokenWithTokenExchangeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/CreateOAuth2TokenWithTokenExchangeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/CreateOAuth2TokenWithTokenExchangeCommandOutput/)
|
|
202
|
+
</details>
|
|
203
|
+
<details>
|
|
204
|
+
<summary>
|
|
199
205
|
DeleteConsoleAuthorizationConfiguration
|
|
200
206
|
</summary>
|
|
201
207
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -52,6 +52,11 @@ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
|
52
52
|
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
|
+
case "CreateOAuth2TokenWithTokenExchange":
|
|
56
|
+
{
|
|
57
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
55
60
|
default: {
|
|
56
61
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
57
62
|
}
|
|
@@ -79,7 +84,7 @@ const commonParams = {
|
|
|
79
84
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
80
85
|
};
|
|
81
86
|
|
|
82
|
-
var version = "3.
|
|
87
|
+
var version = "3.1156.0";
|
|
83
88
|
var packageInfo = {
|
|
84
89
|
version: version};
|
|
85
90
|
|
|
@@ -278,6 +283,52 @@ class ValidationException extends SigninServiceException {
|
|
|
278
283
|
this.error = opts.error;
|
|
279
284
|
}
|
|
280
285
|
}
|
|
286
|
+
class InvalidGrantException extends SigninServiceException {
|
|
287
|
+
static shapeId = "com.amazonaws.signin#InvalidGrantException";
|
|
288
|
+
name = "InvalidGrantException";
|
|
289
|
+
$fault = "client";
|
|
290
|
+
error;
|
|
291
|
+
constructor(opts) {
|
|
292
|
+
super({
|
|
293
|
+
name: "InvalidGrantException",
|
|
294
|
+
$fault: "client",
|
|
295
|
+
...opts,
|
|
296
|
+
});
|
|
297
|
+
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
298
|
+
this.error = opts.error;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
class InvalidScopeException extends SigninServiceException {
|
|
302
|
+
static shapeId = "com.amazonaws.signin#InvalidScopeException";
|
|
303
|
+
name = "InvalidScopeException";
|
|
304
|
+
$fault = "client";
|
|
305
|
+
error;
|
|
306
|
+
constructor(opts) {
|
|
307
|
+
super({
|
|
308
|
+
name: "InvalidScopeException",
|
|
309
|
+
$fault: "client",
|
|
310
|
+
...opts,
|
|
311
|
+
});
|
|
312
|
+
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
313
|
+
this.error = opts.error;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
class ServiceUnavailableException extends SigninServiceException {
|
|
317
|
+
static shapeId = "com.amazonaws.signin#ServiceUnavailableException";
|
|
318
|
+
name = "ServiceUnavailableException";
|
|
319
|
+
$fault = "server";
|
|
320
|
+
$retryable = {};
|
|
321
|
+
error;
|
|
322
|
+
constructor(opts) {
|
|
323
|
+
super({
|
|
324
|
+
name: "ServiceUnavailableException",
|
|
325
|
+
$fault: "server",
|
|
326
|
+
...opts,
|
|
327
|
+
});
|
|
328
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
329
|
+
this.error = opts.error;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
281
332
|
class ResourceNotFoundException extends SigninServiceException {
|
|
282
333
|
static shapeId = "com.amazonaws.signin#ResourceNotFoundException";
|
|
283
334
|
name = "ResourceNotFoundException";
|
|
@@ -323,6 +374,9 @@ const _COATRr = "CreateOAuth2TokenResponse";
|
|
|
323
374
|
const _COATWIAM = "CreateOAuth2TokenWithIAM";
|
|
324
375
|
const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
|
|
325
376
|
const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
|
|
377
|
+
const _COATWTE = "CreateOAuth2TokenWithTokenExchange";
|
|
378
|
+
const _COATWTER = "CreateOAuth2TokenWithTokenExchangeRequest";
|
|
379
|
+
const _COATWTERr = "CreateOAuth2TokenWithTokenExchangeResponse";
|
|
326
380
|
const _DCAC = "DeleteConsoleAuthorizationConfiguration";
|
|
327
381
|
const _DCACI = "DeleteConsoleAuthorizationConfigurationInput";
|
|
328
382
|
const _DCACO = "DeleteConsoleAuthorizationConfigurationOutput";
|
|
@@ -336,10 +390,12 @@ const _GCACO = "GetConsoleAuthorizationConfigurationOutput";
|
|
|
336
390
|
const _GRP = "GetResourcePolicy";
|
|
337
391
|
const _GRPI = "GetResourcePolicyInput";
|
|
338
392
|
const _GRPO = "GetResourcePolicyOutput";
|
|
393
|
+
const _IGE = "InvalidGrantException";
|
|
339
394
|
const _IOATWIAM = "IntrospectOAuth2TokenWithIAM";
|
|
340
395
|
const _IOATWIAMR = "IntrospectOAuth2TokenWithIAMRequest";
|
|
341
396
|
const _IOATWIAMRn = "IntrospectOAuth2TokenWithIAMResponse";
|
|
342
397
|
const _ISE = "InternalServerException";
|
|
398
|
+
const _ISEn = "InvalidScopeException";
|
|
343
399
|
const _IT = "IntrospectionToken";
|
|
344
400
|
const _LRPS = "ListResourcePermissionStatements";
|
|
345
401
|
const _LRPSI = "ListResourcePermissionStatementsInput";
|
|
@@ -366,6 +422,8 @@ const _RTe = "RevocationToken";
|
|
|
366
422
|
const _S = "Statement";
|
|
367
423
|
const _SQEE = "ServiceQuotaExceededException";
|
|
368
424
|
const _SRBP = "SigninResourceBasedPolicy";
|
|
425
|
+
const _ST = "SubjectToken";
|
|
426
|
+
const _SUE = "ServiceUnavailableException";
|
|
369
427
|
const _TMRE = "TooManyRequestsError";
|
|
370
428
|
const _V = "Version";
|
|
371
429
|
const _VE = "ValidationException";
|
|
@@ -398,7 +456,9 @@ const _h = "http";
|
|
|
398
456
|
const _hE = "httpError";
|
|
399
457
|
const _i = "iat";
|
|
400
458
|
const _iT = "idToken";
|
|
459
|
+
const _iTT = "issuedTokenType";
|
|
401
460
|
const _is = "iss";
|
|
461
|
+
const _itt = "issued_token_type";
|
|
402
462
|
const _j = "jti";
|
|
403
463
|
const _jN = "jsonName";
|
|
404
464
|
const _m = "message";
|
|
@@ -419,12 +479,16 @@ const _sRBP = "signinResourceBasedPolicy";
|
|
|
419
479
|
const _sS = "signinSession";
|
|
420
480
|
const _sSV = "signinSourceVpce";
|
|
421
481
|
const _sT = "sessionToken";
|
|
482
|
+
const _sTT = "subjectTokenType";
|
|
483
|
+
const _sTu = "subjectToken";
|
|
422
484
|
const _sV = "sourceVpc";
|
|
423
485
|
const _sc = "scope";
|
|
424
486
|
const _se = "server";
|
|
425
487
|
const _si = "sid";
|
|
426
488
|
const _ss = "signin_session";
|
|
427
|
-
const _st = "
|
|
489
|
+
const _st = "subject_token";
|
|
490
|
+
const _sta = "statement";
|
|
491
|
+
const _stt = "subject_token_type";
|
|
428
492
|
const _su = "sub";
|
|
429
493
|
const _t = "token";
|
|
430
494
|
const _tI = "tokenInput";
|
|
@@ -461,6 +525,18 @@ var InternalServerException$ = [-3, n0, _ISE,
|
|
|
461
525
|
[0, 0], 2
|
|
462
526
|
];
|
|
463
527
|
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
528
|
+
var InvalidGrantException$ = [-3, n0, _IGE,
|
|
529
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
530
|
+
[_e, _m],
|
|
531
|
+
[0, 0], 2
|
|
532
|
+
];
|
|
533
|
+
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
534
|
+
var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
535
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
536
|
+
[_e, _m],
|
|
537
|
+
[0, 0], 2
|
|
538
|
+
];
|
|
539
|
+
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
464
540
|
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
465
541
|
{ [_e]: _c, [_hE]: 404 },
|
|
466
542
|
[_e, _m],
|
|
@@ -473,6 +549,12 @@ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
|
473
549
|
[0, 0], 2
|
|
474
550
|
];
|
|
475
551
|
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
552
|
+
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
553
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
554
|
+
[_e, _m],
|
|
555
|
+
[0, 0], 2
|
|
556
|
+
];
|
|
557
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
476
558
|
var TooManyRequestsError$ = [-3, n0, _TMRE,
|
|
477
559
|
{ [_e]: _c, [_hE]: 429 },
|
|
478
560
|
[_e, _m],
|
|
@@ -493,6 +575,7 @@ var IntrospectionToken = [0, n0, _IT, 8, 0];
|
|
|
493
575
|
var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
|
|
494
576
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
495
577
|
var RevocationToken = [0, n0, _RTe, 8, 0];
|
|
578
|
+
var SubjectToken = [0, n0, _ST, 8, 0];
|
|
496
579
|
var AccessToken$ = [3, n0, _AT,
|
|
497
580
|
8,
|
|
498
581
|
[_aKI, _sAK, _sT],
|
|
@@ -528,6 +611,16 @@ var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
|
|
|
528
611
|
[_aT, _tT, _eI],
|
|
529
612
|
[[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
|
|
530
613
|
];
|
|
614
|
+
var CreateOAuth2TokenWithTokenExchangeRequest$ = [3, n0, _COATWTER,
|
|
615
|
+
0,
|
|
616
|
+
[_gT, _sTu, _sTT, _r, _sc],
|
|
617
|
+
[[0, { [_jN]: _gt }], [() => SubjectToken, { [_jN]: _st }], [0, { [_jN]: _stt }], 0, 0], 1
|
|
618
|
+
];
|
|
619
|
+
var CreateOAuth2TokenWithTokenExchangeResponse$ = [3, n0, _COATWTERr,
|
|
620
|
+
0,
|
|
621
|
+
[_aT, _tT, _eI, _iTT],
|
|
622
|
+
[[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }], [0, { [_jN]: _itt }]], 3
|
|
623
|
+
];
|
|
531
624
|
var DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
|
|
532
625
|
0,
|
|
533
626
|
[_tIa],
|
|
@@ -630,7 +723,7 @@ var RevokeOAuth2TokenWithIAMResponse$ = [3, n0, _ROATWIAMRe,
|
|
|
630
723
|
];
|
|
631
724
|
var SigninResourceBasedPolicy$ = [3, n0, _SRBP,
|
|
632
725
|
0,
|
|
633
|
-
[_v,
|
|
726
|
+
[_v, _sta],
|
|
634
727
|
[[0, { [_jN]: _V }], [() => PolicyStatements, { [_jN]: _S }]]
|
|
635
728
|
];
|
|
636
729
|
var PermissionStatementSummaries = [1, n0, _PSSe,
|
|
@@ -646,6 +739,9 @@ var CreateOAuth2Token$ = [9, n0, _COAT,
|
|
|
646
739
|
var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
|
|
647
740
|
{ [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
|
|
648
741
|
];
|
|
742
|
+
var CreateOAuth2TokenWithTokenExchange$ = [9, n0, _COATWTE,
|
|
743
|
+
{ [_h]: ["POST", "/v1/token?x-amz-oauth-token-method=token-exchange", 200] }, () => CreateOAuth2TokenWithTokenExchangeRequest$, () => CreateOAuth2TokenWithTokenExchangeResponse$
|
|
744
|
+
];
|
|
649
745
|
var DeleteConsoleAuthorizationConfiguration$ = [9, n0, _DCAC,
|
|
650
746
|
{ [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => DeleteConsoleAuthorizationConfigurationInput$, () => DeleteConsoleAuthorizationConfigurationOutput$
|
|
651
747
|
];
|
|
@@ -843,6 +939,9 @@ class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token",
|
|
|
843
939
|
class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
|
|
844
940
|
}
|
|
845
941
|
|
|
942
|
+
class CreateOAuth2TokenWithTokenExchangeCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithTokenExchange", CreateOAuth2TokenWithTokenExchange$) {
|
|
943
|
+
}
|
|
944
|
+
|
|
846
945
|
class DeleteConsoleAuthorizationConfigurationCommand extends command(_ep2, _mw0, "DeleteConsoleAuthorizationConfiguration", DeleteConsoleAuthorizationConfiguration$) {
|
|
847
946
|
}
|
|
848
947
|
|
|
@@ -875,6 +974,7 @@ const paginateListResourcePermissionStatements = createPaginator(SigninClient, L
|
|
|
875
974
|
const commands = {
|
|
876
975
|
CreateOAuth2TokenCommand,
|
|
877
976
|
CreateOAuth2TokenWithIAMCommand,
|
|
977
|
+
CreateOAuth2TokenWithTokenExchangeCommand,
|
|
878
978
|
DeleteConsoleAuthorizationConfigurationCommand,
|
|
879
979
|
DeleteResourcePermissionStatementCommand,
|
|
880
980
|
GetConsoleAuthorizationConfigurationCommand,
|
|
@@ -897,6 +997,13 @@ const OAuth2ErrorCode = {
|
|
|
897
997
|
CONFLICT: "CONFLICT",
|
|
898
998
|
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
899
999
|
INVALID_REQUEST: "INVALID_REQUEST",
|
|
1000
|
+
OAUTH_INVALID_GRANT: "invalid_grant",
|
|
1001
|
+
OAUTH_INVALID_REQUEST: "invalid_request",
|
|
1002
|
+
OAUTH_INVALID_SCOPE: "invalid_scope",
|
|
1003
|
+
OAUTH_INVALID_TARGET: "invalid_target",
|
|
1004
|
+
OAUTH_RATE_EXCEEDED: "rate_exceeded",
|
|
1005
|
+
OAUTH_SERVICE_UNAVAILABLE: "service_unavailable",
|
|
1006
|
+
OAUTH_UNSUPPORTED_GRANT_TYPE: "unsupported_grant_type",
|
|
900
1007
|
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
901
1008
|
SERVER_ERROR: "server_error",
|
|
902
1009
|
SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
|
|
@@ -919,6 +1026,10 @@ exports.CreateOAuth2TokenWithIAM$ = CreateOAuth2TokenWithIAM$;
|
|
|
919
1026
|
exports.CreateOAuth2TokenWithIAMCommand = CreateOAuth2TokenWithIAMCommand;
|
|
920
1027
|
exports.CreateOAuth2TokenWithIAMRequest$ = CreateOAuth2TokenWithIAMRequest$;
|
|
921
1028
|
exports.CreateOAuth2TokenWithIAMResponse$ = CreateOAuth2TokenWithIAMResponse$;
|
|
1029
|
+
exports.CreateOAuth2TokenWithTokenExchange$ = CreateOAuth2TokenWithTokenExchange$;
|
|
1030
|
+
exports.CreateOAuth2TokenWithTokenExchangeCommand = CreateOAuth2TokenWithTokenExchangeCommand;
|
|
1031
|
+
exports.CreateOAuth2TokenWithTokenExchangeRequest$ = CreateOAuth2TokenWithTokenExchangeRequest$;
|
|
1032
|
+
exports.CreateOAuth2TokenWithTokenExchangeResponse$ = CreateOAuth2TokenWithTokenExchangeResponse$;
|
|
922
1033
|
exports.DeleteConsoleAuthorizationConfiguration$ = DeleteConsoleAuthorizationConfiguration$;
|
|
923
1034
|
exports.DeleteConsoleAuthorizationConfigurationCommand = DeleteConsoleAuthorizationConfigurationCommand;
|
|
924
1035
|
exports.DeleteConsoleAuthorizationConfigurationInput$ = DeleteConsoleAuthorizationConfigurationInput$;
|
|
@@ -941,6 +1052,10 @@ exports.IntrospectOAuth2TokenWithIAM$ = IntrospectOAuth2TokenWithIAM$;
|
|
|
941
1052
|
exports.IntrospectOAuth2TokenWithIAMCommand = IntrospectOAuth2TokenWithIAMCommand;
|
|
942
1053
|
exports.IntrospectOAuth2TokenWithIAMRequest$ = IntrospectOAuth2TokenWithIAMRequest$;
|
|
943
1054
|
exports.IntrospectOAuth2TokenWithIAMResponse$ = IntrospectOAuth2TokenWithIAMResponse$;
|
|
1055
|
+
exports.InvalidGrantException = InvalidGrantException;
|
|
1056
|
+
exports.InvalidGrantException$ = InvalidGrantException$;
|
|
1057
|
+
exports.InvalidScopeException = InvalidScopeException;
|
|
1058
|
+
exports.InvalidScopeException$ = InvalidScopeException$;
|
|
944
1059
|
exports.ListResourcePermissionStatements$ = ListResourcePermissionStatements$;
|
|
945
1060
|
exports.ListResourcePermissionStatementsCommand = ListResourcePermissionStatementsCommand;
|
|
946
1061
|
exports.ListResourcePermissionStatementsInput$ = ListResourcePermissionStatementsInput$;
|
|
@@ -964,6 +1079,8 @@ exports.RevokeOAuth2TokenWithIAMRequest$ = RevokeOAuth2TokenWithIAMRequest$;
|
|
|
964
1079
|
exports.RevokeOAuth2TokenWithIAMResponse$ = RevokeOAuth2TokenWithIAMResponse$;
|
|
965
1080
|
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
966
1081
|
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
1082
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
1083
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
967
1084
|
exports.Signin = Signin;
|
|
968
1085
|
exports.SigninClient = SigninClient;
|
|
969
1086
|
exports.SigninResourceBasedPolicy$ = SigninResourceBasedPolicy$;
|
package/dist-es/Signin.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { CreateOAuth2TokenCommand, } from "./commands/CreateOAuth2TokenCommand";
|
|
3
3
|
import { CreateOAuth2TokenWithIAMCommand, } from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
4
|
+
import { CreateOAuth2TokenWithTokenExchangeCommand, } from "./commands/CreateOAuth2TokenWithTokenExchangeCommand";
|
|
4
5
|
import { DeleteConsoleAuthorizationConfigurationCommand, } from "./commands/DeleteConsoleAuthorizationConfigurationCommand";
|
|
5
6
|
import { DeleteResourcePermissionStatementCommand, } from "./commands/DeleteResourcePermissionStatementCommand";
|
|
6
7
|
import { GetConsoleAuthorizationConfigurationCommand, } from "./commands/GetConsoleAuthorizationConfigurationCommand";
|
|
@@ -15,6 +16,7 @@ import { SigninClient } from "./SigninClient";
|
|
|
15
16
|
const commands = {
|
|
16
17
|
CreateOAuth2TokenCommand,
|
|
17
18
|
CreateOAuth2TokenWithIAMCommand,
|
|
19
|
+
CreateOAuth2TokenWithTokenExchangeCommand,
|
|
18
20
|
DeleteConsoleAuthorizationConfigurationCommand,
|
|
19
21
|
DeleteResourcePermissionStatementCommand,
|
|
20
22
|
GetConsoleAuthorizationConfigurationCommand,
|
|
@@ -37,6 +37,12 @@ export const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
;
|
|
40
|
+
case "CreateOAuth2TokenWithTokenExchange":
|
|
41
|
+
{
|
|
42
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
;
|
|
40
46
|
default: {
|
|
41
47
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
42
48
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep1, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { CreateOAuth2TokenWithTokenExchange$ } from "../schemas/schemas_0";
|
|
3
|
+
export class CreateOAuth2TokenWithTokenExchangeCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithTokenExchange", CreateOAuth2TokenWithTokenExchange$) {
|
|
4
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./CreateOAuth2TokenCommand";
|
|
2
2
|
export * from "./CreateOAuth2TokenWithIAMCommand";
|
|
3
|
+
export * from "./CreateOAuth2TokenWithTokenExchangeCommand";
|
|
3
4
|
export * from "./DeleteConsoleAuthorizationConfigurationCommand";
|
|
4
5
|
export * from "./DeleteResourcePermissionStatementCommand";
|
|
5
6
|
export * from "./GetConsoleAuthorizationConfigurationCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -3,6 +3,13 @@ export const OAuth2ErrorCode = {
|
|
|
3
3
|
CONFLICT: "CONFLICT",
|
|
4
4
|
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
5
5
|
INVALID_REQUEST: "INVALID_REQUEST",
|
|
6
|
+
OAUTH_INVALID_GRANT: "invalid_grant",
|
|
7
|
+
OAUTH_INVALID_REQUEST: "invalid_request",
|
|
8
|
+
OAUTH_INVALID_SCOPE: "invalid_scope",
|
|
9
|
+
OAUTH_INVALID_TARGET: "invalid_target",
|
|
10
|
+
OAUTH_RATE_EXCEEDED: "rate_exceeded",
|
|
11
|
+
OAUTH_SERVICE_UNAVAILABLE: "service_unavailable",
|
|
12
|
+
OAUTH_UNSUPPORTED_GRANT_TYPE: "unsupported_grant_type",
|
|
6
13
|
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
7
14
|
SERVER_ERROR: "server_error",
|
|
8
15
|
SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -74,6 +74,52 @@ export class ValidationException extends __BaseException {
|
|
|
74
74
|
this.error = opts.error;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
export class InvalidGrantException extends __BaseException {
|
|
78
|
+
static shapeId = "com.amazonaws.signin#InvalidGrantException";
|
|
79
|
+
name = "InvalidGrantException";
|
|
80
|
+
$fault = "client";
|
|
81
|
+
error;
|
|
82
|
+
constructor(opts) {
|
|
83
|
+
super({
|
|
84
|
+
name: "InvalidGrantException",
|
|
85
|
+
$fault: "client",
|
|
86
|
+
...opts,
|
|
87
|
+
});
|
|
88
|
+
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
89
|
+
this.error = opts.error;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export class InvalidScopeException extends __BaseException {
|
|
93
|
+
static shapeId = "com.amazonaws.signin#InvalidScopeException";
|
|
94
|
+
name = "InvalidScopeException";
|
|
95
|
+
$fault = "client";
|
|
96
|
+
error;
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "InvalidScopeException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
104
|
+
this.error = opts.error;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export class ServiceUnavailableException extends __BaseException {
|
|
108
|
+
static shapeId = "com.amazonaws.signin#ServiceUnavailableException";
|
|
109
|
+
name = "ServiceUnavailableException";
|
|
110
|
+
$fault = "server";
|
|
111
|
+
$retryable = {};
|
|
112
|
+
error;
|
|
113
|
+
constructor(opts) {
|
|
114
|
+
super({
|
|
115
|
+
name: "ServiceUnavailableException",
|
|
116
|
+
$fault: "server",
|
|
117
|
+
...opts,
|
|
118
|
+
});
|
|
119
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
120
|
+
this.error = opts.error;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
77
123
|
export class ResourceNotFoundException extends __BaseException {
|
|
78
124
|
static shapeId = "com.amazonaws.signin#ResourceNotFoundException";
|
|
79
125
|
name = "ResourceNotFoundException";
|
|
@@ -12,6 +12,9 @@ const _COATRr = "CreateOAuth2TokenResponse";
|
|
|
12
12
|
const _COATWIAM = "CreateOAuth2TokenWithIAM";
|
|
13
13
|
const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
|
|
14
14
|
const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
|
|
15
|
+
const _COATWTE = "CreateOAuth2TokenWithTokenExchange";
|
|
16
|
+
const _COATWTER = "CreateOAuth2TokenWithTokenExchangeRequest";
|
|
17
|
+
const _COATWTERr = "CreateOAuth2TokenWithTokenExchangeResponse";
|
|
15
18
|
const _DCAC = "DeleteConsoleAuthorizationConfiguration";
|
|
16
19
|
const _DCACI = "DeleteConsoleAuthorizationConfigurationInput";
|
|
17
20
|
const _DCACO = "DeleteConsoleAuthorizationConfigurationOutput";
|
|
@@ -25,10 +28,12 @@ const _GCACO = "GetConsoleAuthorizationConfigurationOutput";
|
|
|
25
28
|
const _GRP = "GetResourcePolicy";
|
|
26
29
|
const _GRPI = "GetResourcePolicyInput";
|
|
27
30
|
const _GRPO = "GetResourcePolicyOutput";
|
|
31
|
+
const _IGE = "InvalidGrantException";
|
|
28
32
|
const _IOATWIAM = "IntrospectOAuth2TokenWithIAM";
|
|
29
33
|
const _IOATWIAMR = "IntrospectOAuth2TokenWithIAMRequest";
|
|
30
34
|
const _IOATWIAMRn = "IntrospectOAuth2TokenWithIAMResponse";
|
|
31
35
|
const _ISE = "InternalServerException";
|
|
36
|
+
const _ISEn = "InvalidScopeException";
|
|
32
37
|
const _IT = "IntrospectionToken";
|
|
33
38
|
const _LRPS = "ListResourcePermissionStatements";
|
|
34
39
|
const _LRPSI = "ListResourcePermissionStatementsInput";
|
|
@@ -55,6 +60,8 @@ const _RTe = "RevocationToken";
|
|
|
55
60
|
const _S = "Statement";
|
|
56
61
|
const _SQEE = "ServiceQuotaExceededException";
|
|
57
62
|
const _SRBP = "SigninResourceBasedPolicy";
|
|
63
|
+
const _ST = "SubjectToken";
|
|
64
|
+
const _SUE = "ServiceUnavailableException";
|
|
58
65
|
const _TMRE = "TooManyRequestsError";
|
|
59
66
|
const _V = "Version";
|
|
60
67
|
const _VE = "ValidationException";
|
|
@@ -87,7 +94,9 @@ const _h = "http";
|
|
|
87
94
|
const _hE = "httpError";
|
|
88
95
|
const _i = "iat";
|
|
89
96
|
const _iT = "idToken";
|
|
97
|
+
const _iTT = "issuedTokenType";
|
|
90
98
|
const _is = "iss";
|
|
99
|
+
const _itt = "issued_token_type";
|
|
91
100
|
const _j = "jti";
|
|
92
101
|
const _jN = "jsonName";
|
|
93
102
|
const _m = "message";
|
|
@@ -108,12 +117,16 @@ const _sRBP = "signinResourceBasedPolicy";
|
|
|
108
117
|
const _sS = "signinSession";
|
|
109
118
|
const _sSV = "signinSourceVpce";
|
|
110
119
|
const _sT = "sessionToken";
|
|
120
|
+
const _sTT = "subjectTokenType";
|
|
121
|
+
const _sTu = "subjectToken";
|
|
111
122
|
const _sV = "sourceVpc";
|
|
112
123
|
const _sc = "scope";
|
|
113
124
|
const _se = "server";
|
|
114
125
|
const _si = "sid";
|
|
115
126
|
const _ss = "signin_session";
|
|
116
|
-
const _st = "
|
|
127
|
+
const _st = "subject_token";
|
|
128
|
+
const _sta = "statement";
|
|
129
|
+
const _stt = "subject_token_type";
|
|
117
130
|
const _su = "sub";
|
|
118
131
|
const _t = "token";
|
|
119
132
|
const _tI = "tokenInput";
|
|
@@ -129,7 +142,7 @@ const _v = "version";
|
|
|
129
142
|
const _vSI = "vpcSourceIp";
|
|
130
143
|
const n0 = "com.amazonaws.signin";
|
|
131
144
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
132
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsError, ValidationException, } from "../models/errors";
|
|
145
|
+
import { AccessDeniedException, ConflictException, InternalServerException, InvalidGrantException, InvalidScopeException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, TooManyRequestsError, ValidationException, } from "../models/errors";
|
|
133
146
|
import { SigninServiceException } from "../models/SigninServiceException";
|
|
134
147
|
const _s_registry = new TypeRegistry(_s);
|
|
135
148
|
export var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
@@ -153,6 +166,18 @@ export var InternalServerException$ = [-3, n0, _ISE,
|
|
|
153
166
|
[0, 0], 2
|
|
154
167
|
];
|
|
155
168
|
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
169
|
+
export var InvalidGrantException$ = [-3, n0, _IGE,
|
|
170
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
171
|
+
[_e, _m],
|
|
172
|
+
[0, 0], 2
|
|
173
|
+
];
|
|
174
|
+
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
175
|
+
export var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
176
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
177
|
+
[_e, _m],
|
|
178
|
+
[0, 0], 2
|
|
179
|
+
];
|
|
180
|
+
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
156
181
|
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
157
182
|
{ [_e]: _c, [_hE]: 404 },
|
|
158
183
|
[_e, _m],
|
|
@@ -165,6 +190,12 @@ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
|
165
190
|
[0, 0], 2
|
|
166
191
|
];
|
|
167
192
|
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
193
|
+
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
194
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
195
|
+
[_e, _m],
|
|
196
|
+
[0, 0], 2
|
|
197
|
+
];
|
|
198
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
168
199
|
export var TooManyRequestsError$ = [-3, n0, _TMRE,
|
|
169
200
|
{ [_e]: _c, [_hE]: 429 },
|
|
170
201
|
[_e, _m],
|
|
@@ -185,6 +216,7 @@ var IntrospectionToken = [0, n0, _IT, 8, 0];
|
|
|
185
216
|
var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
|
|
186
217
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
187
218
|
var RevocationToken = [0, n0, _RTe, 8, 0];
|
|
219
|
+
var SubjectToken = [0, n0, _ST, 8, 0];
|
|
188
220
|
export var AccessToken$ = [3, n0, _AT,
|
|
189
221
|
8,
|
|
190
222
|
[_aKI, _sAK, _sT],
|
|
@@ -220,6 +252,16 @@ export var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
|
|
|
220
252
|
[_aT, _tT, _eI],
|
|
221
253
|
[[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
|
|
222
254
|
];
|
|
255
|
+
export var CreateOAuth2TokenWithTokenExchangeRequest$ = [3, n0, _COATWTER,
|
|
256
|
+
0,
|
|
257
|
+
[_gT, _sTu, _sTT, _r, _sc],
|
|
258
|
+
[[0, { [_jN]: _gt }], [() => SubjectToken, { [_jN]: _st }], [0, { [_jN]: _stt }], 0, 0], 1
|
|
259
|
+
];
|
|
260
|
+
export var CreateOAuth2TokenWithTokenExchangeResponse$ = [3, n0, _COATWTERr,
|
|
261
|
+
0,
|
|
262
|
+
[_aT, _tT, _eI, _iTT],
|
|
263
|
+
[[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }], [0, { [_jN]: _itt }]], 3
|
|
264
|
+
];
|
|
223
265
|
export var DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
|
|
224
266
|
0,
|
|
225
267
|
[_tIa],
|
|
@@ -322,7 +364,7 @@ export var RevokeOAuth2TokenWithIAMResponse$ = [3, n0, _ROATWIAMRe,
|
|
|
322
364
|
];
|
|
323
365
|
export var SigninResourceBasedPolicy$ = [3, n0, _SRBP,
|
|
324
366
|
0,
|
|
325
|
-
[_v,
|
|
367
|
+
[_v, _sta],
|
|
326
368
|
[[0, { [_jN]: _V }], [() => PolicyStatements, { [_jN]: _S }]]
|
|
327
369
|
];
|
|
328
370
|
var ConditionValues = 64 | 0;
|
|
@@ -347,6 +389,9 @@ export var CreateOAuth2Token$ = [9, n0, _COAT,
|
|
|
347
389
|
export var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
|
|
348
390
|
{ [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
|
|
349
391
|
];
|
|
392
|
+
export var CreateOAuth2TokenWithTokenExchange$ = [9, n0, _COATWTE,
|
|
393
|
+
{ [_h]: ["POST", "/v1/token?x-amz-oauth-token-method=token-exchange", 200] }, () => CreateOAuth2TokenWithTokenExchangeRequest$, () => CreateOAuth2TokenWithTokenExchangeResponse$
|
|
394
|
+
];
|
|
350
395
|
export var DeleteConsoleAuthorizationConfiguration$ = [9, n0, _DCAC,
|
|
351
396
|
{ [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => DeleteConsoleAuthorizationConfigurationInput$, () => DeleteConsoleAuthorizationConfigurationOutput$
|
|
352
397
|
];
|
package/dist-types/Signin.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { type CreateOAuth2TokenCommandInput, type CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
3
3
|
import { type CreateOAuth2TokenWithIAMCommandInput, type CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
4
|
+
import { type CreateOAuth2TokenWithTokenExchangeCommandInput, type CreateOAuth2TokenWithTokenExchangeCommandOutput } from "./commands/CreateOAuth2TokenWithTokenExchangeCommand";
|
|
4
5
|
import { type DeleteConsoleAuthorizationConfigurationCommandInput, type DeleteConsoleAuthorizationConfigurationCommandOutput } from "./commands/DeleteConsoleAuthorizationConfigurationCommand";
|
|
5
6
|
import { type DeleteResourcePermissionStatementCommandInput, type DeleteResourcePermissionStatementCommandOutput } from "./commands/DeleteResourcePermissionStatementCommand";
|
|
6
7
|
import { type GetConsoleAuthorizationConfigurationCommandInput, type GetConsoleAuthorizationConfigurationCommandOutput } from "./commands/GetConsoleAuthorizationConfigurationCommand";
|
|
@@ -30,6 +31,12 @@ export interface Signin {
|
|
|
30
31
|
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options?: SigninRequestOptions): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
|
|
31
32
|
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
32
33
|
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options: SigninRequestOptions, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link CreateOAuth2TokenWithTokenExchangeCommand}
|
|
36
|
+
*/
|
|
37
|
+
createOAuth2TokenWithTokenExchange(args: CreateOAuth2TokenWithTokenExchangeCommandInput, options?: SigninRequestOptions): Promise<CreateOAuth2TokenWithTokenExchangeCommandOutput>;
|
|
38
|
+
createOAuth2TokenWithTokenExchange(args: CreateOAuth2TokenWithTokenExchangeCommandInput, cb: (err: any, data?: CreateOAuth2TokenWithTokenExchangeCommandOutput) => void): void;
|
|
39
|
+
createOAuth2TokenWithTokenExchange(args: CreateOAuth2TokenWithTokenExchangeCommandInput, options: SigninRequestOptions, cb: (err: any, data?: CreateOAuth2TokenWithTokenExchangeCommandOutput) => void): void;
|
|
33
40
|
/**
|
|
34
41
|
* @see {@link DeleteConsoleAuthorizationConfigurationCommand}
|
|
35
42
|
*/
|
|
@@ -99,8 +106,7 @@ export interface Signin {
|
|
|
99
106
|
paginateListResourcePermissionStatements(args?: ListResourcePermissionStatementsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourcePermissionStatementsCommandOutput>;
|
|
100
107
|
}
|
|
101
108
|
/**
|
|
102
|
-
* AWS Sign-In manages authentication for AWS services.
|
|
103
|
-
* secure authentication flows for accessing AWS resources from the console and developer tools.
|
|
109
|
+
* AWS Sign-In manages authentication for AWS services. It implements OAuth 2.0, providing secure token exchange and refresh capabilities.
|
|
104
110
|
* @public
|
|
105
111
|
*/
|
|
106
112
|
export declare class Signin extends SigninClient implements Signin {
|
|
@@ -8,6 +8,7 @@ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengt
|
|
|
8
8
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import type { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
10
10
|
import type { CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
11
|
+
import type { CreateOAuth2TokenWithTokenExchangeCommandInput, CreateOAuth2TokenWithTokenExchangeCommandOutput } from "./commands/CreateOAuth2TokenWithTokenExchangeCommand";
|
|
11
12
|
import type { DeleteConsoleAuthorizationConfigurationCommandInput, DeleteConsoleAuthorizationConfigurationCommandOutput } from "./commands/DeleteConsoleAuthorizationConfigurationCommand";
|
|
12
13
|
import type { DeleteResourcePermissionStatementCommandInput, DeleteResourcePermissionStatementCommandOutput } from "./commands/DeleteResourcePermissionStatementCommand";
|
|
13
14
|
import type { GetConsoleAuthorizationConfigurationCommandInput, GetConsoleAuthorizationConfigurationCommandOutput } from "./commands/GetConsoleAuthorizationConfigurationCommand";
|
|
@@ -23,11 +24,11 @@ export { __Client };
|
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
|
-
export type ServiceInputTypes = CreateOAuth2TokenCommandInput | CreateOAuth2TokenWithIAMCommandInput | DeleteConsoleAuthorizationConfigurationCommandInput | DeleteResourcePermissionStatementCommandInput | GetConsoleAuthorizationConfigurationCommandInput | GetResourcePolicyCommandInput | IntrospectOAuth2TokenWithIAMCommandInput | ListResourcePermissionStatementsCommandInput | PutConsoleAuthorizationConfigurationCommandInput | PutResourcePermissionStatementCommandInput | RevokeOAuth2TokenWithIAMCommandInput;
|
|
27
|
+
export type ServiceInputTypes = CreateOAuth2TokenCommandInput | CreateOAuth2TokenWithIAMCommandInput | CreateOAuth2TokenWithTokenExchangeCommandInput | DeleteConsoleAuthorizationConfigurationCommandInput | DeleteResourcePermissionStatementCommandInput | GetConsoleAuthorizationConfigurationCommandInput | GetResourcePolicyCommandInput | IntrospectOAuth2TokenWithIAMCommandInput | ListResourcePermissionStatementsCommandInput | PutConsoleAuthorizationConfigurationCommandInput | PutResourcePermissionStatementCommandInput | RevokeOAuth2TokenWithIAMCommandInput;
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
30
|
*/
|
|
30
|
-
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput | CreateOAuth2TokenWithIAMCommandOutput | DeleteConsoleAuthorizationConfigurationCommandOutput | DeleteResourcePermissionStatementCommandOutput | GetConsoleAuthorizationConfigurationCommandOutput | GetResourcePolicyCommandOutput | IntrospectOAuth2TokenWithIAMCommandOutput | ListResourcePermissionStatementsCommandOutput | PutConsoleAuthorizationConfigurationCommandOutput | PutResourcePermissionStatementCommandOutput | RevokeOAuth2TokenWithIAMCommandOutput;
|
|
31
|
+
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput | CreateOAuth2TokenWithIAMCommandOutput | CreateOAuth2TokenWithTokenExchangeCommandOutput | DeleteConsoleAuthorizationConfigurationCommandOutput | DeleteResourcePermissionStatementCommandOutput | GetConsoleAuthorizationConfigurationCommandOutput | GetResourcePolicyCommandOutput | IntrospectOAuth2TokenWithIAMCommandOutput | ListResourcePermissionStatementsCommandOutput | PutConsoleAuthorizationConfigurationCommandOutput | PutResourcePermissionStatementCommandOutput | RevokeOAuth2TokenWithIAMCommandOutput;
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
@@ -180,8 +181,7 @@ export type SigninClientResolvedConfigType = __SmithyResolvedConfiguration<__Htt
|
|
|
180
181
|
export interface SigninClientResolvedConfig extends SigninClientResolvedConfigType {
|
|
181
182
|
}
|
|
182
183
|
/**
|
|
183
|
-
* AWS Sign-In manages authentication for AWS services.
|
|
184
|
-
* secure authentication flows for accessing AWS resources from the console and developer tools.
|
|
184
|
+
* AWS Sign-In manages authentication for AWS services. It implements OAuth 2.0, providing secure token exchange and refresh capabilities.
|
|
185
185
|
* @public
|
|
186
186
|
*/
|
|
187
187
|
export declare class SigninClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig> {
|