@aws-sdk/nested-clients 3.997.6 → 3.997.8
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/submodules/cognito-identity/index.js +520 -52
- package/dist-cjs/submodules/signin/index.js +454 -49
- package/dist-cjs/submodules/sso/index.js +399 -49
- package/dist-cjs/submodules/sso-oidc/index.js +593 -49
- package/dist-cjs/submodules/sts/index.js +835 -55
- package/dist-es/submodules/cognito-identity/CognitoIdentity.js +1 -1
- package/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +5 -5
- package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -2
- package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -2
- package/dist-es/submodules/cognito-identity/endpoint/bdd.js +1 -1
- package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -1
- package/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/cognito-identity/runtimeConfig.js +4 -8
- package/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/cognito-identity/runtimeExtensions.js +2 -2
- package/dist-es/submodules/signin/Signin.js +1 -1
- package/dist-es/submodules/signin/SigninClient.js +5 -5
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -2
- package/dist-es/submodules/signin/endpoint/bdd.js +1 -1
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/signin/models/SigninServiceException.js +1 -1
- package/dist-es/submodules/signin/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/signin/runtimeConfig.js +4 -8
- package/dist-es/submodules/signin/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/signin/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sso/SSO.js +1 -1
- package/dist-es/submodules/sso/SSOClient.js +5 -5
- package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -2
- package/dist-es/submodules/sso/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sso/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sso/models/SSOServiceException.js +1 -1
- package/dist-es/submodules/sso/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sso/runtimeConfig.js +4 -8
- package/dist-es/submodules/sso/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sso/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sso-oidc/SSOOIDC.js +1 -1
- package/dist-es/submodules/sso-oidc/SSOOIDCClient.js +5 -5
- package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -2
- package/dist-es/submodules/sso-oidc/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -1
- package/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sso-oidc/runtimeConfig.js +4 -8
- package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sso-oidc/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sts/STS.js +1 -1
- package/dist-es/submodules/sts/STSClient.js +5 -5
- package/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +5 -10
- package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -2
- package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +0 -5
- package/dist-es/submodules/sts/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sts/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sts/models/STSServiceException.js +1 -1
- package/dist-es/submodules/sts/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sts/runtimeConfig.js +4 -8
- package/dist-es/submodules/sts/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sts/runtimeExtensions.js +2 -2
- package/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +5 -5
- package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +6 -4
- package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -4
- package/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/models/errors.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/signin/SigninClient.d.ts +5 -5
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +6 -4
- package/dist-types/submodules/signin/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/signin/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -1
- package/dist-types/submodules/signin/models/errors.d.ts +1 -1
- package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/signin/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/signin/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sso/SSOClient.d.ts +5 -5
- package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +6 -4
- package/dist-types/submodules/sso/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sso/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -1
- package/dist-types/submodules/sso/models/errors.d.ts +1 -1
- package/dist-types/submodules/sso/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sso/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sso/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +5 -5
- package/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +6 -4
- package/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sts/STSClient.d.ts +5 -5
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -13
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +0 -9
- package/dist-types/submodules/sts/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sts/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/dist-types/submodules/sts/models/errors.d.ts +1 -1
- package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sts/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sts/runtimeConfig.native.d.ts +4 -4
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +2 -12
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +0 -3
- package/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +5 -5
- package/package.json +13 -34
- package/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +0 -60
- package/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +0 -100
- package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +0 -12
- package/dist-cjs/submodules/cognito-identity/models/errors.js +0 -121
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +0 -50
- package/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +0 -110
- package/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/signin/endpoint/bdd.js +0 -90
- package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/signin/models/SigninServiceException.js +0 -12
- package/dist-cjs/submodules/signin/models/errors.js +0 -64
- package/dist-cjs/submodules/signin/runtimeConfig.browser.js +0 -39
- package/dist-cjs/submodules/signin/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/signin/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/signin/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/signin/schemas/schemas_0.js +0 -125
- package/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/sso/endpoint/bdd.js +0 -80
- package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sso/models/SSOServiceException.js +0 -12
- package/dist-cjs/submodules/sso/models/errors.js +0 -56
- package/dist-cjs/submodules/sso/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/sso/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/sso/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sso/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/sso/schemas/schemas_0.js +0 -90
- package/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +0 -80
- package/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +0 -12
- package/dist-cjs/submodules/sso-oidc/models/errors.js +0 -195
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +0 -140
- package/dist-cjs/submodules/sts/STSClient.js +0 -55
- package/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +0 -144
- package/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +0 -19
- package/dist-cjs/submodules/sts/endpoint/bdd.js +0 -150
- package/dist-cjs/submodules/sts/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sts/models/STSServiceException.js +0 -12
- package/dist-cjs/submodules/sts/models/errors.js +0 -96
- package/dist-cjs/submodules/sts/runtimeConfig.browser.js +0 -39
- package/dist-cjs/submodules/sts/runtimeConfig.js +0 -74
- package/dist-cjs/submodules/sts/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sts/runtimeConfig.shared.js +0 -57
- package/dist-cjs/submodules/sts/runtimeExtensions.js +0 -13
- package/dist-cjs/submodules/sts/schemas/schemas_0.js +0 -195
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
-
const core_1 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const url_parser_1 = require("@smithy/url-parser");
|
|
9
|
-
const util_base64_1 = require("@smithy/util-base64");
|
|
10
|
-
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
|
-
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
14
|
-
const getRuntimeConfig = (config) => {
|
|
15
|
-
return {
|
|
16
|
-
apiVersion: "2019-06-10",
|
|
17
|
-
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
18
|
-
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
19
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
20
|
-
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
21
|
-
extensions: config?.extensions ?? [],
|
|
22
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,
|
|
23
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
24
|
-
{
|
|
25
|
-
schemeId: "aws.auth#sigv4",
|
|
26
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
27
|
-
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
schemeId: "smithy.api#noAuth",
|
|
31
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
32
|
-
signer: new core_1.NoAuthSigner(),
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
36
|
-
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
37
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
38
|
-
defaultNamespace: "com.amazonaws.sso",
|
|
39
|
-
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
40
|
-
version: "2019-06-10",
|
|
41
|
-
serviceTarget: "SWBPortalService",
|
|
42
|
-
},
|
|
43
|
-
serviceId: config?.serviceId ?? "SSO",
|
|
44
|
-
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
45
|
-
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
46
|
-
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetRoleCredentials$ = exports.RoleCredentials$ = exports.GetRoleCredentialsResponse$ = exports.GetRoleCredentialsRequest$ = exports.errorTypeRegistries = exports.UnauthorizedException$ = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.SSOServiceException$ = void 0;
|
|
4
|
-
const _ATT = "AccessTokenType";
|
|
5
|
-
const _GRC = "GetRoleCredentials";
|
|
6
|
-
const _GRCR = "GetRoleCredentialsRequest";
|
|
7
|
-
const _GRCRe = "GetRoleCredentialsResponse";
|
|
8
|
-
const _IRE = "InvalidRequestException";
|
|
9
|
-
const _RC = "RoleCredentials";
|
|
10
|
-
const _RNFE = "ResourceNotFoundException";
|
|
11
|
-
const _SAKT = "SecretAccessKeyType";
|
|
12
|
-
const _STT = "SessionTokenType";
|
|
13
|
-
const _TMRE = "TooManyRequestsException";
|
|
14
|
-
const _UE = "UnauthorizedException";
|
|
15
|
-
const _aI = "accountId";
|
|
16
|
-
const _aKI = "accessKeyId";
|
|
17
|
-
const _aT = "accessToken";
|
|
18
|
-
const _ai = "account_id";
|
|
19
|
-
const _c = "client";
|
|
20
|
-
const _e = "error";
|
|
21
|
-
const _ex = "expiration";
|
|
22
|
-
const _h = "http";
|
|
23
|
-
const _hE = "httpError";
|
|
24
|
-
const _hH = "httpHeader";
|
|
25
|
-
const _hQ = "httpQuery";
|
|
26
|
-
const _m = "message";
|
|
27
|
-
const _rC = "roleCredentials";
|
|
28
|
-
const _rN = "roleName";
|
|
29
|
-
const _rn = "role_name";
|
|
30
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
31
|
-
const _sAK = "secretAccessKey";
|
|
32
|
-
const _sT = "sessionToken";
|
|
33
|
-
const _xasbt = "x-amz-sso_bearer_token";
|
|
34
|
-
const n0 = "com.amazonaws.sso";
|
|
35
|
-
const schema_1 = require("@smithy/core/schema");
|
|
36
|
-
const errors_1 = require("../models/errors");
|
|
37
|
-
const SSOServiceException_1 = require("../models/SSOServiceException");
|
|
38
|
-
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
39
|
-
exports.SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
40
|
-
_s_registry.registerError(exports.SSOServiceException$, SSOServiceException_1.SSOServiceException);
|
|
41
|
-
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
42
|
-
exports.InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
43
|
-
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
44
|
-
exports.ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
45
|
-
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
46
|
-
exports.TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
47
|
-
n0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);
|
|
48
|
-
exports.UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
|
|
49
|
-
n0_registry.registerError(exports.UnauthorizedException$, errors_1.UnauthorizedException);
|
|
50
|
-
exports.errorTypeRegistries = [_s_registry, n0_registry];
|
|
51
|
-
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
52
|
-
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
53
|
-
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
54
|
-
exports.GetRoleCredentialsRequest$ = [
|
|
55
|
-
3,
|
|
56
|
-
n0,
|
|
57
|
-
_GRCR,
|
|
58
|
-
0,
|
|
59
|
-
[_rN, _aI, _aT],
|
|
60
|
-
[
|
|
61
|
-
[0, { [_hQ]: _rn }],
|
|
62
|
-
[0, { [_hQ]: _ai }],
|
|
63
|
-
[() => AccessTokenType, { [_hH]: _xasbt }],
|
|
64
|
-
],
|
|
65
|
-
3,
|
|
66
|
-
];
|
|
67
|
-
exports.GetRoleCredentialsResponse$ = [
|
|
68
|
-
3,
|
|
69
|
-
n0,
|
|
70
|
-
_GRCRe,
|
|
71
|
-
0,
|
|
72
|
-
[_rC],
|
|
73
|
-
[[() => exports.RoleCredentials$, 0]],
|
|
74
|
-
];
|
|
75
|
-
exports.RoleCredentials$ = [
|
|
76
|
-
3,
|
|
77
|
-
n0,
|
|
78
|
-
_RC,
|
|
79
|
-
0,
|
|
80
|
-
[_aKI, _sAK, _sT, _ex],
|
|
81
|
-
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],
|
|
82
|
-
];
|
|
83
|
-
exports.GetRoleCredentials$ = [
|
|
84
|
-
9,
|
|
85
|
-
n0,
|
|
86
|
-
_GRC,
|
|
87
|
-
{ [_h]: ["GET", "/federation/credentials", 200] },
|
|
88
|
-
() => exports.GetRoleCredentialsRequest$,
|
|
89
|
-
() => exports.GetRoleCredentialsResponse$,
|
|
90
|
-
];
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
-
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
-
return {
|
|
8
|
-
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
10
|
-
(() => {
|
|
11
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
12
|
-
})(),
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
|
16
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
-
return {
|
|
18
|
-
schemeId: "aws.auth#sigv4",
|
|
19
|
-
signingProperties: {
|
|
20
|
-
name: "sso-oauth",
|
|
21
|
-
region: authParameters.region,
|
|
22
|
-
},
|
|
23
|
-
propertiesExtractor: (config, context) => ({
|
|
24
|
-
signingProperties: {
|
|
25
|
-
config,
|
|
26
|
-
context,
|
|
27
|
-
},
|
|
28
|
-
}),
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
32
|
-
return {
|
|
33
|
-
schemeId: "smithy.api#noAuth",
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
37
|
-
const options = [];
|
|
38
|
-
switch (authParameters.operation) {
|
|
39
|
-
case "CreateToken": {
|
|
40
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
default: {
|
|
44
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return options;
|
|
48
|
-
};
|
|
49
|
-
exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
|
|
50
|
-
const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
52
|
-
return Object.assign(config_0, {
|
|
53
|
-
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
-
const k = "ref";
|
|
6
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
|
-
const _data = {
|
|
8
|
-
conditions: [
|
|
9
|
-
[c, [g]],
|
|
10
|
-
[c, j],
|
|
11
|
-
["aws.partition", j, d],
|
|
12
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
13
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
14
|
-
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
15
|
-
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
16
|
-
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
|
|
17
|
-
],
|
|
18
|
-
results: [
|
|
19
|
-
[a],
|
|
20
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
21
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
22
|
-
[g, i],
|
|
23
|
-
["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
24
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
25
|
-
["https://oidc.{Region}.amazonaws.com", i],
|
|
26
|
-
["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
27
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
28
|
-
["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
29
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
30
|
-
["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
31
|
-
[a, "Invalid Configuration: Missing Region"],
|
|
32
|
-
],
|
|
33
|
-
};
|
|
34
|
-
const root = 2;
|
|
35
|
-
const r = 100_000_000;
|
|
36
|
-
const nodes = new Int32Array([
|
|
37
|
-
-1,
|
|
38
|
-
1,
|
|
39
|
-
-1,
|
|
40
|
-
0,
|
|
41
|
-
13,
|
|
42
|
-
3,
|
|
43
|
-
1,
|
|
44
|
-
4,
|
|
45
|
-
r + 12,
|
|
46
|
-
2,
|
|
47
|
-
5,
|
|
48
|
-
r + 12,
|
|
49
|
-
3,
|
|
50
|
-
8,
|
|
51
|
-
6,
|
|
52
|
-
4,
|
|
53
|
-
7,
|
|
54
|
-
r + 11,
|
|
55
|
-
5,
|
|
56
|
-
r + 9,
|
|
57
|
-
r + 10,
|
|
58
|
-
4,
|
|
59
|
-
11,
|
|
60
|
-
9,
|
|
61
|
-
6,
|
|
62
|
-
10,
|
|
63
|
-
r + 8,
|
|
64
|
-
7,
|
|
65
|
-
r + 6,
|
|
66
|
-
r + 7,
|
|
67
|
-
5,
|
|
68
|
-
12,
|
|
69
|
-
r + 5,
|
|
70
|
-
6,
|
|
71
|
-
r + 4,
|
|
72
|
-
r + 5,
|
|
73
|
-
3,
|
|
74
|
-
r + 1,
|
|
75
|
-
14,
|
|
76
|
-
4,
|
|
77
|
-
r + 2,
|
|
78
|
-
r + 3,
|
|
79
|
-
]);
|
|
80
|
-
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
-
size: 50,
|
|
9
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
-
});
|
|
11
|
-
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
|
-
endpointParams: endpointParams,
|
|
14
|
-
logger: context.logger,
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class SSOOIDCServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const SSOOIDCServiceException_1 = require("./SSOOIDCServiceException");
|
|
5
|
-
class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
6
|
-
name = "AccessDeniedException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
error;
|
|
9
|
-
reason;
|
|
10
|
-
error_description;
|
|
11
|
-
constructor(opts) {
|
|
12
|
-
super({
|
|
13
|
-
name: "AccessDeniedException",
|
|
14
|
-
$fault: "client",
|
|
15
|
-
...opts,
|
|
16
|
-
});
|
|
17
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
-
this.error = opts.error;
|
|
19
|
-
this.reason = opts.reason;
|
|
20
|
-
this.error_description = opts.error_description;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
24
|
-
class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
25
|
-
name = "AuthorizationPendingException";
|
|
26
|
-
$fault = "client";
|
|
27
|
-
error;
|
|
28
|
-
error_description;
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "AuthorizationPendingException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
36
|
-
this.error = opts.error;
|
|
37
|
-
this.error_description = opts.error_description;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
41
|
-
class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
42
|
-
name = "ExpiredTokenException";
|
|
43
|
-
$fault = "client";
|
|
44
|
-
error;
|
|
45
|
-
error_description;
|
|
46
|
-
constructor(opts) {
|
|
47
|
-
super({
|
|
48
|
-
name: "ExpiredTokenException",
|
|
49
|
-
$fault: "client",
|
|
50
|
-
...opts,
|
|
51
|
-
});
|
|
52
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
53
|
-
this.error = opts.error;
|
|
54
|
-
this.error_description = opts.error_description;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
|
58
|
-
class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
59
|
-
name = "InternalServerException";
|
|
60
|
-
$fault = "server";
|
|
61
|
-
error;
|
|
62
|
-
error_description;
|
|
63
|
-
constructor(opts) {
|
|
64
|
-
super({
|
|
65
|
-
name: "InternalServerException",
|
|
66
|
-
$fault: "server",
|
|
67
|
-
...opts,
|
|
68
|
-
});
|
|
69
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
70
|
-
this.error = opts.error;
|
|
71
|
-
this.error_description = opts.error_description;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.InternalServerException = InternalServerException;
|
|
75
|
-
class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
76
|
-
name = "InvalidClientException";
|
|
77
|
-
$fault = "client";
|
|
78
|
-
error;
|
|
79
|
-
error_description;
|
|
80
|
-
constructor(opts) {
|
|
81
|
-
super({
|
|
82
|
-
name: "InvalidClientException",
|
|
83
|
-
$fault: "client",
|
|
84
|
-
...opts,
|
|
85
|
-
});
|
|
86
|
-
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
87
|
-
this.error = opts.error;
|
|
88
|
-
this.error_description = opts.error_description;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.InvalidClientException = InvalidClientException;
|
|
92
|
-
class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
93
|
-
name = "InvalidGrantException";
|
|
94
|
-
$fault = "client";
|
|
95
|
-
error;
|
|
96
|
-
error_description;
|
|
97
|
-
constructor(opts) {
|
|
98
|
-
super({
|
|
99
|
-
name: "InvalidGrantException",
|
|
100
|
-
$fault: "client",
|
|
101
|
-
...opts,
|
|
102
|
-
});
|
|
103
|
-
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
104
|
-
this.error = opts.error;
|
|
105
|
-
this.error_description = opts.error_description;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.InvalidGrantException = InvalidGrantException;
|
|
109
|
-
class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
110
|
-
name = "InvalidRequestException";
|
|
111
|
-
$fault = "client";
|
|
112
|
-
error;
|
|
113
|
-
reason;
|
|
114
|
-
error_description;
|
|
115
|
-
constructor(opts) {
|
|
116
|
-
super({
|
|
117
|
-
name: "InvalidRequestException",
|
|
118
|
-
$fault: "client",
|
|
119
|
-
...opts,
|
|
120
|
-
});
|
|
121
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
122
|
-
this.error = opts.error;
|
|
123
|
-
this.reason = opts.reason;
|
|
124
|
-
this.error_description = opts.error_description;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
128
|
-
class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
129
|
-
name = "InvalidScopeException";
|
|
130
|
-
$fault = "client";
|
|
131
|
-
error;
|
|
132
|
-
error_description;
|
|
133
|
-
constructor(opts) {
|
|
134
|
-
super({
|
|
135
|
-
name: "InvalidScopeException",
|
|
136
|
-
$fault: "client",
|
|
137
|
-
...opts,
|
|
138
|
-
});
|
|
139
|
-
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
140
|
-
this.error = opts.error;
|
|
141
|
-
this.error_description = opts.error_description;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.InvalidScopeException = InvalidScopeException;
|
|
145
|
-
class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
146
|
-
name = "SlowDownException";
|
|
147
|
-
$fault = "client";
|
|
148
|
-
error;
|
|
149
|
-
error_description;
|
|
150
|
-
constructor(opts) {
|
|
151
|
-
super({
|
|
152
|
-
name: "SlowDownException",
|
|
153
|
-
$fault: "client",
|
|
154
|
-
...opts,
|
|
155
|
-
});
|
|
156
|
-
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
157
|
-
this.error = opts.error;
|
|
158
|
-
this.error_description = opts.error_description;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
exports.SlowDownException = SlowDownException;
|
|
162
|
-
class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
163
|
-
name = "UnauthorizedClientException";
|
|
164
|
-
$fault = "client";
|
|
165
|
-
error;
|
|
166
|
-
error_description;
|
|
167
|
-
constructor(opts) {
|
|
168
|
-
super({
|
|
169
|
-
name: "UnauthorizedClientException",
|
|
170
|
-
$fault: "client",
|
|
171
|
-
...opts,
|
|
172
|
-
});
|
|
173
|
-
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
174
|
-
this.error = opts.error;
|
|
175
|
-
this.error_description = opts.error_description;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.UnauthorizedClientException = UnauthorizedClientException;
|
|
179
|
-
class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
180
|
-
name = "UnsupportedGrantTypeException";
|
|
181
|
-
$fault = "client";
|
|
182
|
-
error;
|
|
183
|
-
error_description;
|
|
184
|
-
constructor(opts) {
|
|
185
|
-
super({
|
|
186
|
-
name: "UnsupportedGrantTypeException",
|
|
187
|
-
$fault: "client",
|
|
188
|
-
...opts,
|
|
189
|
-
});
|
|
190
|
-
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
191
|
-
this.error = opts.error;
|
|
192
|
-
this.error_description = opts.error_description;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const package_json_1 = tslib_1.__importDefault(require("../../../package.json"));
|
|
6
|
-
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
-
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
-
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
12
|
-
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
14
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
15
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
const getRuntimeConfig = (config) => {
|
|
17
|
-
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
|
-
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
|
-
return {
|
|
21
|
-
...clientSharedValues,
|
|
22
|
-
...config,
|
|
23
|
-
runtime: "browser",
|
|
24
|
-
defaultsMode,
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
27
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
|
-
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
|
-
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
30
|
-
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
32
|
-
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
33
|
-
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
34
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const package_json_1 = tslib_1.__importDefault(require("../../../package.json"));
|
|
6
|
-
const client_1 = require("@aws-sdk/core/client");
|
|
7
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
8
|
-
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
-
const hash_node_1 = require("@smithy/hash-node");
|
|
11
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
|
-
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
-
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
16
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
17
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
18
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
|
-
const getRuntimeConfig = (config) => {
|
|
20
|
-
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
21
|
-
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
22
|
-
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
23
|
-
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
24
|
-
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
|
-
const loaderConfig = {
|
|
26
|
-
profile: config?.profile,
|
|
27
|
-
logger: clientSharedValues.logger,
|
|
28
|
-
};
|
|
29
|
-
return {
|
|
30
|
-
...clientSharedValues,
|
|
31
|
-
...config,
|
|
32
|
-
runtime: "node",
|
|
33
|
-
defaultsMode,
|
|
34
|
-
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
37
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
38
|
-
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
39
|
-
region: config?.region ??
|
|
40
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
41
|
-
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
42
|
-
retryMode: config?.retryMode ??
|
|
43
|
-
(0, node_config_provider_1.loadConfig)({
|
|
44
|
-
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
45
|
-
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
46
|
-
}, config),
|
|
47
|
-
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
48
|
-
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
49
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
51
|
-
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
-
return {
|
|
9
|
-
...browserDefaults,
|
|
10
|
-
...config,
|
|
11
|
-
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
-
const core_1 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const url_parser_1 = require("@smithy/url-parser");
|
|
9
|
-
const util_base64_1 = require("@smithy/util-base64");
|
|
10
|
-
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
|
-
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
14
|
-
const getRuntimeConfig = (config) => {
|
|
15
|
-
return {
|
|
16
|
-
apiVersion: "2019-06-10",
|
|
17
|
-
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
18
|
-
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
19
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
20
|
-
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
21
|
-
extensions: config?.extensions ?? [],
|
|
22
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
|
|
23
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
24
|
-
{
|
|
25
|
-
schemeId: "aws.auth#sigv4",
|
|
26
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
27
|
-
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
schemeId: "smithy.api#noAuth",
|
|
31
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
32
|
-
signer: new core_1.NoAuthSigner(),
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
36
|
-
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
37
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
38
|
-
defaultNamespace: "com.amazonaws.ssooidc",
|
|
39
|
-
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
40
|
-
version: "2019-06-10",
|
|
41
|
-
serviceTarget: "AWSSSOOIDCService",
|
|
42
|
-
},
|
|
43
|
-
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
44
|
-
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
45
|
-
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
46
|
-
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|