@cdk8s/awscdk-resolver 0.0.31 → 0.0.33
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/README.md +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +36 -36
- package/node_modules/@aws-sdk/client-sso/README.md +1 -1
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/client-sts/README.md +1 -1
- package/node_modules/@aws-sdk/client-sts/package.json +35 -35
- package/node_modules/@aws-sdk/core/CHANGELOG.md +8 -0
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-signing/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +31 -31
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +3 -3
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +13 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +12 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +6 -6
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +8 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +9 -0
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +2 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/index.js +6 -0
- package/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
- package/node_modules/@smithy/types/dist-es/identity/index.js +2 -0
- package/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/{auth.d.ts → auth/auth.d.ts} +2 -0
- package/node_modules/@smithy/types/dist-types/auth/index.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/identity/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/{auth.d.ts → auth/auth.d.ts} +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +1 -1
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +6 -6
- package/node_modules/@smithy/util-utf8/package.json +2 -7
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +6 -6
- package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js +0 -9
- package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js +0 -47
- package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js +0 -11
- package/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js +0 -4
- package/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js +0 -42
- package/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js +0 -6
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/index.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/pureJs.d.ts +0 -17
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/pureJs.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/whatwgEncodingApi.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/whatwgEncodingApi.d.ts +0 -2
- /package/node_modules/@smithy/types/dist-cjs/{auth.js → auth/auth.js} +0 -0
- /package/node_modules/@smithy/types/dist-es/{auth.js → auth/auth.js} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/signature-v4",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.15",
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -24,18 +24,18 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@smithy/eventstream-codec": "^2.0.
|
27
|
+
"@smithy/eventstream-codec": "^2.0.13",
|
28
28
|
"@smithy/is-array-buffer": "^2.0.0",
|
29
|
-
"@smithy/types": "^2.
|
29
|
+
"@smithy/types": "^2.5.0",
|
30
30
|
"@smithy/util-hex-encoding": "^2.0.0",
|
31
|
-
"@smithy/util-middleware": "^2.0.
|
31
|
+
"@smithy/util-middleware": "^2.0.6",
|
32
32
|
"@smithy/util-uri-escape": "^2.0.0",
|
33
|
-
"@smithy/util-utf8": "^2.0.
|
33
|
+
"@smithy/util-utf8": "^2.0.2",
|
34
34
|
"tslib": "^2.5.0"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@aws-crypto/sha256-js": "3.0.0",
|
38
|
-
"@smithy/protocol-http": "^3.0.
|
38
|
+
"@smithy/protocol-http": "^3.0.9",
|
39
39
|
"@tsconfig/recommended": "1.0.1",
|
40
40
|
"concurrently": "7.0.0",
|
41
41
|
"downlevel-dts": "0.10.1",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/smithy-client",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.15",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
|
@@ -23,9 +23,9 @@
|
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
|
-
"@smithy/middleware-stack": "^2.0.
|
27
|
-
"@smithy/types": "^2.
|
28
|
-
"@smithy/util-stream": "^2.0.
|
26
|
+
"@smithy/middleware-stack": "^2.0.7",
|
27
|
+
"@smithy/types": "^2.5.0",
|
28
|
+
"@smithy/util-stream": "^2.0.20",
|
29
29
|
"tslib": "^2.5.0"
|
30
30
|
},
|
31
31
|
"engines": {
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HttpApiKeyAuthLocation = void 0;
|
4
|
+
var HttpApiKeyAuthLocation;
|
5
|
+
(function (HttpApiKeyAuthLocation) {
|
6
|
+
HttpApiKeyAuthLocation["HEADER"] = "header";
|
7
|
+
HttpApiKeyAuthLocation["QUERY"] = "query";
|
8
|
+
})(HttpApiKeyAuthLocation = exports.HttpApiKeyAuthLocation || (exports.HttpApiKeyAuthLocation = {}));
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./auth"), exports);
|
5
|
+
tslib_1.__exportStar(require("./HttpApiKeyAuth"), exports);
|
6
|
+
tslib_1.__exportStar(require("./HttpAuthScheme"), exports);
|
7
|
+
tslib_1.__exportStar(require("./HttpAuthSchemeProvider"), exports);
|
8
|
+
tslib_1.__exportStar(require("./HttpSigner"), exports);
|
9
|
+
tslib_1.__exportStar(require("./IdentityProviderConfig"), exports);
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./apiKeyIdentity"), exports);
|
4
5
|
tslib_1.__exportStar(require("./awsCredentialIdentity"), exports);
|
5
6
|
tslib_1.__exportStar(require("./identity"), exports);
|
7
|
+
tslib_1.__exportStar(require("./tokenIdentity"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
import { HandlerExecutionContext } from "../middleware";
|
3
|
+
import { HttpSigner } from "./HttpSigner";
|
4
|
+
import { IdentityProviderConfig } from "./IdentityProviderConfig";
|
5
|
+
/**
|
6
|
+
* ID for {@link HttpAuthScheme}
|
7
|
+
* @internal
|
8
|
+
*/
|
9
|
+
export type HttpAuthSchemeId = string;
|
10
|
+
/**
|
11
|
+
* Interface that defines an HttpAuthScheme
|
12
|
+
* @internal
|
13
|
+
*/
|
14
|
+
export interface HttpAuthScheme {
|
15
|
+
/**
|
16
|
+
* ID for an HttpAuthScheme, typically the absolute shape ID of a Smithy auth trait.
|
17
|
+
*/
|
18
|
+
schemeId: HttpAuthSchemeId;
|
19
|
+
/**
|
20
|
+
* Gets the IdentityProvider corresponding to an HttpAuthScheme.
|
21
|
+
*/
|
22
|
+
identityProvider(config: IdentityProviderConfig): IdentityProvider<Identity> | undefined;
|
23
|
+
/**
|
24
|
+
* HttpSigner corresponding to an HttpAuthScheme.
|
25
|
+
*/
|
26
|
+
signer: HttpSigner;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Interface that defines the identity and signing properties when selecting
|
30
|
+
* an HttpAuthScheme.
|
31
|
+
* @internal
|
32
|
+
*/
|
33
|
+
export interface HttpAuthOption {
|
34
|
+
schemeId: HttpAuthSchemeId;
|
35
|
+
identityProperties?: Record<string, unknown>;
|
36
|
+
signingProperties?: Record<string, unknown>;
|
37
|
+
propertiesExtractor?: <TConfig extends object, TContext extends HandlerExecutionContext>(config: TConfig, context: TContext) => {
|
38
|
+
identityProperties?: Record<string, unknown>;
|
39
|
+
signingProperties?: Record<string, unknown>;
|
40
|
+
};
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* @internal
|
44
|
+
*/
|
45
|
+
export interface SelectedHttpAuthScheme {
|
46
|
+
httpAuthOption: HttpAuthOption;
|
47
|
+
identity: Identity;
|
48
|
+
signer: HttpSigner;
|
49
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { HandlerExecutionContext } from "../middleware";
|
2
|
+
import { HttpAuthOption } from "./HttpAuthScheme";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export interface HttpAuthSchemeParameters {
|
7
|
+
operation?: string;
|
8
|
+
}
|
9
|
+
/**
|
10
|
+
* @internal
|
11
|
+
*/
|
12
|
+
export interface HttpAuthSchemeProvider<TParameters extends HttpAuthSchemeParameters> {
|
13
|
+
(authParameters: TParameters): HttpAuthOption[];
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* @internal
|
17
|
+
*/
|
18
|
+
export interface HttpAuthSchemeParametersProvider<TConfig extends object, TContext extends HandlerExecutionContext, TParameters extends HttpAuthSchemeParameters, TInput extends object> {
|
19
|
+
(config: TConfig, context: TContext, input: TInput): Promise<TParameters>;
|
20
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HttpRequest } from "../http";
|
2
|
+
import { Identity } from "../identity/identity";
|
3
|
+
/**
|
4
|
+
* Interface to sign identity and signing properties.
|
5
|
+
* @internal
|
6
|
+
*/
|
7
|
+
export interface HttpSigner {
|
8
|
+
/**
|
9
|
+
* Signs an HttpRequest with an identity and signing properties.
|
10
|
+
* @param httpRequest request to sign
|
11
|
+
* @param identity identity to sing the request with
|
12
|
+
* @param signingProperties property bag for signing
|
13
|
+
* @returns signed request in a promise
|
14
|
+
*/
|
15
|
+
sign(httpRequest: HttpRequest, identity: Identity, signingProperties: Record<string, unknown>): Promise<HttpRequest>;
|
16
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
import { HttpAuthSchemeId } from "./HttpAuthScheme";
|
3
|
+
/**
|
4
|
+
* Interface to get an IdentityProvider for a specified HttpAuthScheme
|
5
|
+
* @internal
|
6
|
+
*/
|
7
|
+
export interface IdentityProviderConfig {
|
8
|
+
/**
|
9
|
+
* Get the IdentityProvider for a specified HttpAuthScheme.
|
10
|
+
* @param schemeId schemeId of the HttpAuthScheme
|
11
|
+
* @returns IdentityProvider or undefined if HttpAuthScheme is not found
|
12
|
+
*/
|
13
|
+
getIdentityProvider(schemeId: HttpAuthSchemeId): IdentityProvider<Identity> | undefined;
|
14
|
+
}
|
@@ -29,6 +29,7 @@ export interface AuthScheme {
|
|
29
29
|
}
|
30
30
|
/**
|
31
31
|
* @internal
|
32
|
+
* @deprecated
|
32
33
|
*/
|
33
34
|
export interface HttpAuthDefinition {
|
34
35
|
/**
|
@@ -48,6 +49,7 @@ export interface HttpAuthDefinition {
|
|
48
49
|
}
|
49
50
|
/**
|
50
51
|
* @internal
|
52
|
+
* @deprecated
|
51
53
|
*/
|
52
54
|
export declare enum HttpAuthLocation {
|
53
55
|
HEADER = "header",
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
/**
|
3
|
+
* @public
|
4
|
+
*/
|
5
|
+
export interface ApiKeyIdentity extends Identity {
|
6
|
+
/**
|
7
|
+
* The literal API Key
|
8
|
+
*/
|
9
|
+
readonly apiKey: string;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* @public
|
13
|
+
*/
|
14
|
+
export type ApiKeyIdentityProvider = IdentityProvider<ApiKeyIdentity>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
export interface TokenIdentity extends Identity {
|
6
|
+
/**
|
7
|
+
* The literal token string
|
8
|
+
*/
|
9
|
+
readonly token: string;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* @internal
|
13
|
+
*/
|
14
|
+
export type TokenIdentityProvider = IdentityProvider<TokenIdentity>;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
import { HandlerExecutionContext } from "../middleware";
|
3
|
+
import { HttpSigner } from "./HttpSigner";
|
4
|
+
import { IdentityProviderConfig } from "./IdentityProviderConfig";
|
5
|
+
/**
|
6
|
+
* ID for {@link HttpAuthScheme}
|
7
|
+
* @internal
|
8
|
+
*/
|
9
|
+
export type HttpAuthSchemeId = string;
|
10
|
+
/**
|
11
|
+
* Interface that defines an HttpAuthScheme
|
12
|
+
* @internal
|
13
|
+
*/
|
14
|
+
export interface HttpAuthScheme {
|
15
|
+
/**
|
16
|
+
* ID for an HttpAuthScheme, typically the absolute shape ID of a Smithy auth trait.
|
17
|
+
*/
|
18
|
+
schemeId: HttpAuthSchemeId;
|
19
|
+
/**
|
20
|
+
* Gets the IdentityProvider corresponding to an HttpAuthScheme.
|
21
|
+
*/
|
22
|
+
identityProvider(config: IdentityProviderConfig): IdentityProvider<Identity> | undefined;
|
23
|
+
/**
|
24
|
+
* HttpSigner corresponding to an HttpAuthScheme.
|
25
|
+
*/
|
26
|
+
signer: HttpSigner;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Interface that defines the identity and signing properties when selecting
|
30
|
+
* an HttpAuthScheme.
|
31
|
+
* @internal
|
32
|
+
*/
|
33
|
+
export interface HttpAuthOption {
|
34
|
+
schemeId: HttpAuthSchemeId;
|
35
|
+
identityProperties?: Record<string, unknown>;
|
36
|
+
signingProperties?: Record<string, unknown>;
|
37
|
+
propertiesExtractor?: <TConfig extends object, TContext extends HandlerExecutionContext>(config: TConfig, context: TContext) => {
|
38
|
+
identityProperties?: Record<string, unknown>;
|
39
|
+
signingProperties?: Record<string, unknown>;
|
40
|
+
};
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* @internal
|
44
|
+
*/
|
45
|
+
export interface SelectedHttpAuthScheme {
|
46
|
+
httpAuthOption: HttpAuthOption;
|
47
|
+
identity: Identity;
|
48
|
+
signer: HttpSigner;
|
49
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { HandlerExecutionContext } from "../middleware";
|
2
|
+
import { HttpAuthOption } from "./HttpAuthScheme";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export interface HttpAuthSchemeParameters {
|
7
|
+
operation?: string;
|
8
|
+
}
|
9
|
+
/**
|
10
|
+
* @internal
|
11
|
+
*/
|
12
|
+
export interface HttpAuthSchemeProvider<TParameters extends HttpAuthSchemeParameters> {
|
13
|
+
(authParameters: TParameters): HttpAuthOption[];
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* @internal
|
17
|
+
*/
|
18
|
+
export interface HttpAuthSchemeParametersProvider<TConfig extends object, TContext extends HandlerExecutionContext, TParameters extends HttpAuthSchemeParameters, TInput extends object> {
|
19
|
+
(config: TConfig, context: TContext, input: TInput): Promise<TParameters>;
|
20
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HttpRequest } from "../http";
|
2
|
+
import { Identity } from "../identity/identity";
|
3
|
+
/**
|
4
|
+
* Interface to sign identity and signing properties.
|
5
|
+
* @internal
|
6
|
+
*/
|
7
|
+
export interface HttpSigner {
|
8
|
+
/**
|
9
|
+
* Signs an HttpRequest with an identity and signing properties.
|
10
|
+
* @param httpRequest request to sign
|
11
|
+
* @param identity identity to sing the request with
|
12
|
+
* @param signingProperties property bag for signing
|
13
|
+
* @returns signed request in a promise
|
14
|
+
*/
|
15
|
+
sign(httpRequest: HttpRequest, identity: Identity, signingProperties: Record<string, unknown>): Promise<HttpRequest>;
|
16
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
import { HttpAuthSchemeId } from "./HttpAuthScheme";
|
3
|
+
/**
|
4
|
+
* Interface to get an IdentityProvider for a specified HttpAuthScheme
|
5
|
+
* @internal
|
6
|
+
*/
|
7
|
+
export interface IdentityProviderConfig {
|
8
|
+
/**
|
9
|
+
* Get the IdentityProvider for a specified HttpAuthScheme.
|
10
|
+
* @param schemeId schemeId of the HttpAuthScheme
|
11
|
+
* @returns IdentityProvider or undefined if HttpAuthScheme is not found
|
12
|
+
*/
|
13
|
+
getIdentityProvider(schemeId: HttpAuthSchemeId): IdentityProvider<Identity> | undefined;
|
14
|
+
}
|
@@ -29,6 +29,7 @@ export interface AuthScheme {
|
|
29
29
|
}
|
30
30
|
/**
|
31
31
|
* @internal
|
32
|
+
* @deprecated
|
32
33
|
*/
|
33
34
|
export interface HttpAuthDefinition {
|
34
35
|
/**
|
@@ -48,6 +49,7 @@ export interface HttpAuthDefinition {
|
|
48
49
|
}
|
49
50
|
/**
|
50
51
|
* @internal
|
52
|
+
* @deprecated
|
51
53
|
*/
|
52
54
|
export declare enum HttpAuthLocation {
|
53
55
|
HEADER = "header",
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
/**
|
3
|
+
* @public
|
4
|
+
*/
|
5
|
+
export interface ApiKeyIdentity extends Identity {
|
6
|
+
/**
|
7
|
+
* The literal API Key
|
8
|
+
*/
|
9
|
+
readonly apiKey: string;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* @public
|
13
|
+
*/
|
14
|
+
export type ApiKeyIdentityProvider = IdentityProvider<ApiKeyIdentity>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Identity, IdentityProvider } from "../identity/identity";
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
export interface TokenIdentity extends Identity {
|
6
|
+
/**
|
7
|
+
* The literal token string
|
8
|
+
*/
|
9
|
+
readonly token: string;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* @internal
|
13
|
+
*/
|
14
|
+
export type TokenIdentityProvider = IdentityProvider<TokenIdentity>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/url-parser",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.13",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
|
@@ -22,8 +22,8 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@smithy/querystring-parser": "^2.0.
|
26
|
-
"@smithy/types": "^2.
|
25
|
+
"@smithy/querystring-parser": "^2.0.13",
|
26
|
+
"@smithy/types": "^2.5.0",
|
27
27
|
"tslib": "^2.5.0"
|
28
28
|
},
|
29
29
|
"typesVersions": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.19",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
|
@@ -22,9 +22,9 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@smithy/property-provider": "^2.0.
|
26
|
-
"@smithy/smithy-client": "^2.1.
|
27
|
-
"@smithy/types": "^2.
|
25
|
+
"@smithy/property-provider": "^2.0.14",
|
26
|
+
"@smithy/smithy-client": "^2.1.15",
|
27
|
+
"@smithy/types": "^2.5.0",
|
28
28
|
"bowser": "^2.11.0",
|
29
29
|
"tslib": "^2.5.0"
|
30
30
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.25",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
|
@@ -22,12 +22,12 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@smithy/config-resolver": "^2.0.
|
26
|
-
"@smithy/credential-provider-imds": "^2.1.
|
27
|
-
"@smithy/node-config-provider": "^2.1.
|
28
|
-
"@smithy/property-provider": "^2.0.
|
29
|
-
"@smithy/smithy-client": "^2.1.
|
30
|
-
"@smithy/types": "^2.
|
25
|
+
"@smithy/config-resolver": "^2.0.18",
|
26
|
+
"@smithy/credential-provider-imds": "^2.1.1",
|
27
|
+
"@smithy/node-config-provider": "^2.1.5",
|
28
|
+
"@smithy/property-provider": "^2.0.14",
|
29
|
+
"@smithy/smithy-client": "^2.1.15",
|
30
|
+
"@smithy/types": "^2.5.0",
|
31
31
|
"tslib": "^2.5.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-endpoints",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
4
4
|
"description": "Utilities to help with endpoint resolution.",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -26,8 +26,8 @@
|
|
26
26
|
},
|
27
27
|
"license": "Apache-2.0",
|
28
28
|
"dependencies": {
|
29
|
-
"@smithy/node-config-provider": "^2.1.
|
30
|
-
"@smithy/types": "^2.
|
29
|
+
"@smithy/node-config-provider": "^2.1.5",
|
30
|
+
"@smithy/types": "^2.5.0",
|
31
31
|
"tslib": "^2.5.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|