@cdk8s/awscdk-resolver 0.0.232 → 0.0.234
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -8
- package/node_modules/@aws-sdk/client-sso/package.json +5 -5
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -5
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/README.md +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/auth/httpAuthSchemeProvider.js +0 -8
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +106 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +804 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.js +1 -3
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/auth/httpAuthSchemeProvider.js +0 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +145 -0
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/index.js +99 -695
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.browser.js +1 -1
- package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js +9 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/auth/httpAuthSchemeProvider.js +0 -8
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +103 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/models/models_0.js +12 -85
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/protocols/Aws_restJson1.js +2 -174
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.js +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +11 -0
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/auth/httpAuthSchemeProvider.js +0 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +142 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/models/models_0.js +16 -48
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/protocols/Aws_query.js +10 -420
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.browser.js +1 -1
- package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/SSOOIDC.d.ts +0 -21
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/SSOOIDCClient.d.ts +3 -12
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/commands/CreateTokenCommand.d.ts +3 -50
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +396 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +11 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.browser.d.ts +0 -1
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.d.ts +0 -1
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.native.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +27 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/STSClient.d.ts +2 -9
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/commands/AssumeRoleCommand.d.ts +0 -47
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -34
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/models/models_0.d.ts +16 -630
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/protocols/Aws_query.d.ts +20 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +22 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/SSOOIDCClient.d.ts +2 -24
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/commands/CreateTokenCommand.d.ts +5 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/models/models_0.d.ts +6 -99
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +17 -0
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.browser.d.ts +0 -5
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.d.ts +0 -9
- package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.native.d.ts +0 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STS.d.ts +39 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/STSClient.d.ts +2 -44
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/models/models_0.d.ts +10 -105
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/protocols/Aws_query.d.ts +29 -0
- package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.d.ts +3 -9
- package/node_modules/@aws-sdk/{client-sts → nested-clients}/package.json +47 -34
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.js +5 -0
- package/node_modules/@aws-sdk/nested-clients/sts.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/sts.js +5 -0
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +3 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +3 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +3 -3
- package/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +0 -274
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +0 -1255
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +0 -15
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +0 -257
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +0 -143
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +0 -123
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +0 -795
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +0 -73
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +0 -102
- package/node_modules/@aws-sdk/client-sts/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sts/README.md +0 -281
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +0 -25
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRootCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +0 -22
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +0 -22
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +0 -22
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +0 -23
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +0 -78
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +0 -294
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRootCommand.d.ts +0 -129
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +0 -127
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +0 -87
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +0 -128
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +0 -242
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +0 -166
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +0 -83
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +0 -160
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +0 -47
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +0 -51
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +0 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -113
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-cjs → nested-clients/dist-cjs/submodules/sso-oidc}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/STSClient.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-cjs → nested-clients/dist-cjs/submodules/sts}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es/extensionConfiguration.js → nested-clients/dist-es/index.js} +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/SSOOIDCClient.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/commands/CreateTokenCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sso-oidc}/extensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/models/SSOOIDCServiceException.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/models/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-es → nested-clients/dist-es/submodules/sso-oidc}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/STSClient.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/commands/AssumeRoleCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/commands/AssumeRoleWithWebIdentityCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/defaultRoleAssumers.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/defaultStsRoleAssumers.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/models/STSServiceException.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/models/index.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeConfig.shared.js +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-es → nested-clients/dist-es/submodules/sts}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/models/SSOOIDCServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types → nested-clients/dist-types/submodules/sso-oidc}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/defaultRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/defaultStsRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/submodules/sts}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/models/STSServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/submodules/sts}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.browser.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.native.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/submodules/sts}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/models/SSOOIDCServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso-oidc/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso-oidc}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/auth/httpAuthExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/auth/httpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/commands/AssumeRoleCommand.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/defaultRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/defaultStsRoleAssumers.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/endpoint/ruleset.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/models/STSServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/models/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.browser.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.native.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sts/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sts}/runtimeExtensions.d.ts +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuntimeConfig = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
|
-
const package_json_1 = tslib_1.__importDefault(require("
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../../../package.json"));
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
7
7
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
@@ -2,9 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuntimeConfig = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
|
-
const package_json_1 = tslib_1.__importDefault(require("
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../../../package.json"));
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
7
|
-
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
8
7
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
9
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
10
9
|
const core_2 = require("@smithy/core");
|
@@ -31,14 +30,13 @@ const getRuntimeConfig = (config) => {
|
|
31
30
|
runtime: "node",
|
32
31
|
defaultsMode,
|
33
32
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
34
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
35
33
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
36
34
|
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
37
35
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
38
36
|
{
|
39
37
|
schemeId: "aws.auth#sigv4",
|
40
38
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
41
|
-
(async (idProps) => await
|
39
|
+
(async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
42
40
|
signer: new core_1.AwsSdkSigV4Signer(),
|
43
41
|
},
|
44
42
|
{
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
2
|
+
import { CreateTokenCommand } from "./commands/CreateTokenCommand";
|
3
|
+
import { SSOOIDCClient } from "./SSOOIDCClient";
|
4
|
+
const commands = {
|
5
|
+
CreateTokenCommand,
|
6
|
+
};
|
7
|
+
export class SSOOIDC extends SSOOIDCClient {
|
8
|
+
}
|
9
|
+
createAggregatedClient(commands, SSOOIDC);
|
@@ -36,14 +36,6 @@ export const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
36
36
|
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
37
37
|
break;
|
38
38
|
}
|
39
|
-
case "RegisterClient": {
|
40
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
41
|
-
break;
|
42
|
-
}
|
43
|
-
case "StartDeviceAuthorization": {
|
44
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
45
|
-
break;
|
46
|
-
}
|
47
39
|
default: {
|
48
40
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
49
41
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./CreateTokenCommand";
|
@@ -0,0 +1,103 @@
|
|
1
|
+
const u = "required", v = "fn", w = "argv", x = "ref";
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, type: "String" }, j = { [u]: true, default: false, type: "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
3
|
+
const _data = {
|
4
|
+
version: "1.0",
|
5
|
+
parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
|
6
|
+
rules: [
|
7
|
+
{
|
8
|
+
conditions: [{ [v]: b, [w]: [k] }],
|
9
|
+
rules: [
|
10
|
+
{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
11
|
+
{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
|
12
|
+
{ endpoint: { url: k, properties: n, headers: n }, type: e },
|
13
|
+
],
|
14
|
+
type: f,
|
15
|
+
},
|
16
|
+
{
|
17
|
+
conditions: [{ [v]: b, [w]: t }],
|
18
|
+
rules: [
|
19
|
+
{
|
20
|
+
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
21
|
+
rules: [
|
22
|
+
{
|
23
|
+
conditions: [l, m],
|
24
|
+
rules: [
|
25
|
+
{
|
26
|
+
conditions: [{ [v]: c, [w]: [a, o] }, q],
|
27
|
+
rules: [
|
28
|
+
{
|
29
|
+
endpoint: {
|
30
|
+
url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
31
|
+
properties: n,
|
32
|
+
headers: n,
|
33
|
+
},
|
34
|
+
type: e,
|
35
|
+
},
|
36
|
+
],
|
37
|
+
type: f,
|
38
|
+
},
|
39
|
+
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
|
40
|
+
],
|
41
|
+
type: f,
|
42
|
+
},
|
43
|
+
{
|
44
|
+
conditions: r,
|
45
|
+
rules: [
|
46
|
+
{
|
47
|
+
conditions: [{ [v]: c, [w]: [o, a] }],
|
48
|
+
rules: [
|
49
|
+
{
|
50
|
+
conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
|
51
|
+
endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n },
|
52
|
+
type: e,
|
53
|
+
},
|
54
|
+
{
|
55
|
+
endpoint: {
|
56
|
+
url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
|
57
|
+
properties: n,
|
58
|
+
headers: n,
|
59
|
+
},
|
60
|
+
type: e,
|
61
|
+
},
|
62
|
+
],
|
63
|
+
type: f,
|
64
|
+
},
|
65
|
+
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
66
|
+
],
|
67
|
+
type: f,
|
68
|
+
},
|
69
|
+
{
|
70
|
+
conditions: s,
|
71
|
+
rules: [
|
72
|
+
{
|
73
|
+
conditions: [q],
|
74
|
+
rules: [
|
75
|
+
{
|
76
|
+
endpoint: {
|
77
|
+
url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
78
|
+
properties: n,
|
79
|
+
headers: n,
|
80
|
+
},
|
81
|
+
type: e,
|
82
|
+
},
|
83
|
+
],
|
84
|
+
type: f,
|
85
|
+
},
|
86
|
+
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
87
|
+
],
|
88
|
+
type: f,
|
89
|
+
},
|
90
|
+
{
|
91
|
+
endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
92
|
+
type: e,
|
93
|
+
},
|
94
|
+
],
|
95
|
+
type: f,
|
96
|
+
},
|
97
|
+
],
|
98
|
+
type: f,
|
99
|
+
},
|
100
|
+
{ error: "Invalid Configuration: Missing Region", type: d },
|
101
|
+
],
|
102
|
+
};
|
103
|
+
export const ruleSet = _data;
|
@@ -32,6 +32,18 @@ export class AuthorizationPendingException extends __BaseException {
|
|
32
32
|
this.error_description = opts.error_description;
|
33
33
|
}
|
34
34
|
}
|
35
|
+
export const CreateTokenRequestFilterSensitiveLog = (obj) => ({
|
36
|
+
...obj,
|
37
|
+
...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
|
38
|
+
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
39
|
+
...(obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }),
|
40
|
+
});
|
41
|
+
export const CreateTokenResponseFilterSensitiveLog = (obj) => ({
|
42
|
+
...obj,
|
43
|
+
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
44
|
+
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
45
|
+
...(obj.idToken && { idToken: SENSITIVE_STRING }),
|
46
|
+
});
|
35
47
|
export class ExpiredTokenException extends __BaseException {
|
36
48
|
name = "ExpiredTokenException";
|
37
49
|
$fault = "client";
|
@@ -176,88 +188,3 @@ export class UnsupportedGrantTypeException extends __BaseException {
|
|
176
188
|
this.error_description = opts.error_description;
|
177
189
|
}
|
178
190
|
}
|
179
|
-
export class InvalidRequestRegionException extends __BaseException {
|
180
|
-
name = "InvalidRequestRegionException";
|
181
|
-
$fault = "client";
|
182
|
-
error;
|
183
|
-
error_description;
|
184
|
-
endpoint;
|
185
|
-
region;
|
186
|
-
constructor(opts) {
|
187
|
-
super({
|
188
|
-
name: "InvalidRequestRegionException",
|
189
|
-
$fault: "client",
|
190
|
-
...opts,
|
191
|
-
});
|
192
|
-
Object.setPrototypeOf(this, InvalidRequestRegionException.prototype);
|
193
|
-
this.error = opts.error;
|
194
|
-
this.error_description = opts.error_description;
|
195
|
-
this.endpoint = opts.endpoint;
|
196
|
-
this.region = opts.region;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
export class InvalidClientMetadataException extends __BaseException {
|
200
|
-
name = "InvalidClientMetadataException";
|
201
|
-
$fault = "client";
|
202
|
-
error;
|
203
|
-
error_description;
|
204
|
-
constructor(opts) {
|
205
|
-
super({
|
206
|
-
name: "InvalidClientMetadataException",
|
207
|
-
$fault: "client",
|
208
|
-
...opts,
|
209
|
-
});
|
210
|
-
Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
|
211
|
-
this.error = opts.error;
|
212
|
-
this.error_description = opts.error_description;
|
213
|
-
}
|
214
|
-
}
|
215
|
-
export class InvalidRedirectUriException extends __BaseException {
|
216
|
-
name = "InvalidRedirectUriException";
|
217
|
-
$fault = "client";
|
218
|
-
error;
|
219
|
-
error_description;
|
220
|
-
constructor(opts) {
|
221
|
-
super({
|
222
|
-
name: "InvalidRedirectUriException",
|
223
|
-
$fault: "client",
|
224
|
-
...opts,
|
225
|
-
});
|
226
|
-
Object.setPrototypeOf(this, InvalidRedirectUriException.prototype);
|
227
|
-
this.error = opts.error;
|
228
|
-
this.error_description = opts.error_description;
|
229
|
-
}
|
230
|
-
}
|
231
|
-
export const CreateTokenRequestFilterSensitiveLog = (obj) => ({
|
232
|
-
...obj,
|
233
|
-
...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
|
234
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
235
|
-
...(obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }),
|
236
|
-
});
|
237
|
-
export const CreateTokenResponseFilterSensitiveLog = (obj) => ({
|
238
|
-
...obj,
|
239
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
240
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
241
|
-
...(obj.idToken && { idToken: SENSITIVE_STRING }),
|
242
|
-
});
|
243
|
-
export const CreateTokenWithIAMRequestFilterSensitiveLog = (obj) => ({
|
244
|
-
...obj,
|
245
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
246
|
-
...(obj.assertion && { assertion: SENSITIVE_STRING }),
|
247
|
-
...(obj.subjectToken && { subjectToken: SENSITIVE_STRING }),
|
248
|
-
...(obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }),
|
249
|
-
});
|
250
|
-
export const CreateTokenWithIAMResponseFilterSensitiveLog = (obj) => ({
|
251
|
-
...obj,
|
252
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
253
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
254
|
-
...(obj.idToken && { idToken: SENSITIVE_STRING }),
|
255
|
-
});
|
256
|
-
export const RegisterClientResponseFilterSensitiveLog = (obj) => ({
|
257
|
-
...obj,
|
258
|
-
...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
|
259
|
-
});
|
260
|
-
export const StartDeviceAuthorizationRequestFilterSensitiveLog = (obj) => ({
|
261
|
-
...obj,
|
262
|
-
...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
|
263
|
-
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32,
|
4
|
-
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException,
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
4
|
+
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
|
5
5
|
import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
|
6
6
|
export const se_CreateTokenCommand = async (input, context) => {
|
7
7
|
const b = rb(input, context);
|
@@ -24,66 +24,6 @@ export const se_CreateTokenCommand = async (input, context) => {
|
|
24
24
|
b.m("POST").h(headers).b(body);
|
25
25
|
return b.build();
|
26
26
|
};
|
27
|
-
export const se_CreateTokenWithIAMCommand = async (input, context) => {
|
28
|
-
const b = rb(input, context);
|
29
|
-
const headers = {
|
30
|
-
"content-type": "application/json",
|
31
|
-
};
|
32
|
-
b.bp("/token");
|
33
|
-
const query = map({
|
34
|
-
[_ai]: [, "t"],
|
35
|
-
});
|
36
|
-
let body;
|
37
|
-
body = JSON.stringify(take(input, {
|
38
|
-
assertion: [],
|
39
|
-
clientId: [],
|
40
|
-
code: [],
|
41
|
-
codeVerifier: [],
|
42
|
-
grantType: [],
|
43
|
-
redirectUri: [],
|
44
|
-
refreshToken: [],
|
45
|
-
requestedTokenType: [],
|
46
|
-
scope: (_) => _json(_),
|
47
|
-
subjectToken: [],
|
48
|
-
subjectTokenType: [],
|
49
|
-
}));
|
50
|
-
b.m("POST").h(headers).q(query).b(body);
|
51
|
-
return b.build();
|
52
|
-
};
|
53
|
-
export const se_RegisterClientCommand = async (input, context) => {
|
54
|
-
const b = rb(input, context);
|
55
|
-
const headers = {
|
56
|
-
"content-type": "application/json",
|
57
|
-
};
|
58
|
-
b.bp("/client/register");
|
59
|
-
let body;
|
60
|
-
body = JSON.stringify(take(input, {
|
61
|
-
clientName: [],
|
62
|
-
clientType: [],
|
63
|
-
entitledApplicationArn: [],
|
64
|
-
grantTypes: (_) => _json(_),
|
65
|
-
issuerUrl: [],
|
66
|
-
redirectUris: (_) => _json(_),
|
67
|
-
scopes: (_) => _json(_),
|
68
|
-
}));
|
69
|
-
b.m("POST").h(headers).b(body);
|
70
|
-
return b.build();
|
71
|
-
};
|
72
|
-
export const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
73
|
-
const b = rb(input, context);
|
74
|
-
const headers = {
|
75
|
-
"content-type": "application/json",
|
76
|
-
};
|
77
|
-
b.bp("/device_authorization");
|
78
|
-
let body;
|
79
|
-
body = JSON.stringify(take(input, {
|
80
|
-
clientId: [],
|
81
|
-
clientSecret: [],
|
82
|
-
startUrl: [],
|
83
|
-
}));
|
84
|
-
b.m("POST").h(headers).b(body);
|
85
|
-
return b.build();
|
86
|
-
};
|
87
27
|
export const de_CreateTokenCommand = async (output, context) => {
|
88
28
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
89
29
|
return de_CommandError(output, context);
|
@@ -102,64 +42,6 @@ export const de_CreateTokenCommand = async (output, context) => {
|
|
102
42
|
Object.assign(contents, doc);
|
103
43
|
return contents;
|
104
44
|
};
|
105
|
-
export const de_CreateTokenWithIAMCommand = async (output, context) => {
|
106
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
107
|
-
return de_CommandError(output, context);
|
108
|
-
}
|
109
|
-
const contents = map({
|
110
|
-
$metadata: deserializeMetadata(output),
|
111
|
-
});
|
112
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
113
|
-
const doc = take(data, {
|
114
|
-
accessToken: __expectString,
|
115
|
-
expiresIn: __expectInt32,
|
116
|
-
idToken: __expectString,
|
117
|
-
issuedTokenType: __expectString,
|
118
|
-
refreshToken: __expectString,
|
119
|
-
scope: _json,
|
120
|
-
tokenType: __expectString,
|
121
|
-
});
|
122
|
-
Object.assign(contents, doc);
|
123
|
-
return contents;
|
124
|
-
};
|
125
|
-
export const de_RegisterClientCommand = async (output, context) => {
|
126
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
127
|
-
return de_CommandError(output, context);
|
128
|
-
}
|
129
|
-
const contents = map({
|
130
|
-
$metadata: deserializeMetadata(output),
|
131
|
-
});
|
132
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
133
|
-
const doc = take(data, {
|
134
|
-
authorizationEndpoint: __expectString,
|
135
|
-
clientId: __expectString,
|
136
|
-
clientIdIssuedAt: __expectLong,
|
137
|
-
clientSecret: __expectString,
|
138
|
-
clientSecretExpiresAt: __expectLong,
|
139
|
-
tokenEndpoint: __expectString,
|
140
|
-
});
|
141
|
-
Object.assign(contents, doc);
|
142
|
-
return contents;
|
143
|
-
};
|
144
|
-
export const de_StartDeviceAuthorizationCommand = async (output, context) => {
|
145
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
146
|
-
return de_CommandError(output, context);
|
147
|
-
}
|
148
|
-
const contents = map({
|
149
|
-
$metadata: deserializeMetadata(output),
|
150
|
-
});
|
151
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
152
|
-
const doc = take(data, {
|
153
|
-
deviceCode: __expectString,
|
154
|
-
expiresIn: __expectInt32,
|
155
|
-
interval: __expectInt32,
|
156
|
-
userCode: __expectString,
|
157
|
-
verificationUri: __expectString,
|
158
|
-
verificationUriComplete: __expectString,
|
159
|
-
});
|
160
|
-
Object.assign(contents, doc);
|
161
|
-
return contents;
|
162
|
-
};
|
163
45
|
const de_CommandError = async (output, context) => {
|
164
46
|
const parsedOutput = {
|
165
47
|
...output,
|
@@ -200,15 +82,6 @@ const de_CommandError = async (output, context) => {
|
|
200
82
|
case "UnsupportedGrantTypeException":
|
201
83
|
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
202
84
|
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
203
|
-
case "InvalidRequestRegionException":
|
204
|
-
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
205
|
-
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
206
|
-
case "InvalidClientMetadataException":
|
207
|
-
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
208
|
-
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
209
|
-
case "InvalidRedirectUriException":
|
210
|
-
case "com.amazonaws.ssooidc#InvalidRedirectUriException":
|
211
|
-
throw await de_InvalidRedirectUriExceptionRes(parsedOutput, context);
|
212
85
|
default:
|
213
86
|
const parsedBody = parsedOutput.body;
|
214
87
|
return throwDefaultError({
|
@@ -289,20 +162,6 @@ const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
|
289
162
|
});
|
290
163
|
return __decorateServiceException(exception, parsedOutput.body);
|
291
164
|
};
|
292
|
-
const de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
|
293
|
-
const contents = map({});
|
294
|
-
const data = parsedOutput.body;
|
295
|
-
const doc = take(data, {
|
296
|
-
error: __expectString,
|
297
|
-
error_description: __expectString,
|
298
|
-
});
|
299
|
-
Object.assign(contents, doc);
|
300
|
-
const exception = new InvalidClientMetadataException({
|
301
|
-
$metadata: deserializeMetadata(parsedOutput),
|
302
|
-
...contents,
|
303
|
-
});
|
304
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
305
|
-
};
|
306
165
|
const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
307
166
|
const contents = map({});
|
308
167
|
const data = parsedOutput.body;
|
@@ -317,20 +176,6 @@ const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
|
317
176
|
});
|
318
177
|
return __decorateServiceException(exception, parsedOutput.body);
|
319
178
|
};
|
320
|
-
const de_InvalidRedirectUriExceptionRes = async (parsedOutput, context) => {
|
321
|
-
const contents = map({});
|
322
|
-
const data = parsedOutput.body;
|
323
|
-
const doc = take(data, {
|
324
|
-
error: __expectString,
|
325
|
-
error_description: __expectString,
|
326
|
-
});
|
327
|
-
Object.assign(contents, doc);
|
328
|
-
const exception = new InvalidRedirectUriException({
|
329
|
-
$metadata: deserializeMetadata(parsedOutput),
|
330
|
-
...contents,
|
331
|
-
});
|
332
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
333
|
-
};
|
334
179
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
335
180
|
const contents = map({});
|
336
181
|
const data = parsedOutput.body;
|
@@ -345,22 +190,6 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
345
190
|
});
|
346
191
|
return __decorateServiceException(exception, parsedOutput.body);
|
347
192
|
};
|
348
|
-
const de_InvalidRequestRegionExceptionRes = async (parsedOutput, context) => {
|
349
|
-
const contents = map({});
|
350
|
-
const data = parsedOutput.body;
|
351
|
-
const doc = take(data, {
|
352
|
-
endpoint: __expectString,
|
353
|
-
error: __expectString,
|
354
|
-
error_description: __expectString,
|
355
|
-
region: __expectString,
|
356
|
-
});
|
357
|
-
Object.assign(contents, doc);
|
358
|
-
const exception = new InvalidRequestRegionException({
|
359
|
-
$metadata: deserializeMetadata(parsedOutput),
|
360
|
-
...contents,
|
361
|
-
});
|
362
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
363
|
-
};
|
364
193
|
const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
365
194
|
const contents = map({});
|
366
195
|
const data = parsedOutput.body;
|
@@ -424,4 +253,3 @@ const deserializeMetadata = (output) => ({
|
|
424
253
|
cfId: output.headers["x-amz-cf-id"],
|
425
254
|
});
|
426
255
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
427
|
-
const _ai = "aws_iam";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import packageInfo from "
|
1
|
+
import packageInfo from "../../../package.json";
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
3
3
|
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
@@ -19,7 +19,6 @@ export const getRuntimeConfig = (config) => {
|
|
19
19
|
runtime: "browser",
|
20
20
|
defaultsMode,
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
22
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
23
22
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
24
23
|
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
25
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import packageInfo from "
|
1
|
+
import packageInfo from "../../../package.json";
|
2
2
|
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
3
|
-
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
4
3
|
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
5
4
|
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
5
|
import { Hash } from "@smithy/hash-node";
|
@@ -26,7 +25,6 @@ export const getRuntimeConfig = (config) => {
|
|
26
25
|
runtime: "node",
|
27
26
|
defaultsMode,
|
28
27
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
29
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
30
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
31
29
|
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
32
30
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
2
|
+
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
3
|
+
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
4
|
+
import { STSClient } from "./STSClient";
|
5
|
+
const commands = {
|
6
|
+
AssumeRoleCommand,
|
7
|
+
AssumeRoleWithWebIdentityCommand,
|
8
|
+
};
|
9
|
+
export class STS extends STSClient {
|
10
|
+
}
|
11
|
+
createAggregatedClient(commands, STS);
|
@@ -33,10 +33,6 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
33
33
|
export const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
34
34
|
const options = [];
|
35
35
|
switch (authParameters.operation) {
|
36
|
-
case "AssumeRoleWithSAML": {
|
37
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
38
|
-
break;
|
39
|
-
}
|
40
36
|
case "AssumeRoleWithWebIdentity": {
|
41
37
|
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
42
38
|
break;
|