@aws-sdk/middleware-signing
Advanced tools
Comparing version 3.709.0 to 3.713.0
@@ -39,7 +39,3 @@ "use strict"; | ||
var resolveAwsAuthConfig = /* @__PURE__ */ __name((input) => { | ||
const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider( | ||
Object.assign({}, input, { | ||
parentClientConfig: input | ||
}) | ||
); | ||
const normalizedCreds = createConfigBoundCredentialProvider(input); | ||
const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; | ||
@@ -117,7 +113,3 @@ let signer; | ||
var resolveSigV4AuthConfig = /* @__PURE__ */ __name((input) => { | ||
const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider( | ||
Object.assign({}, input, { | ||
parentClientConfig: input | ||
}) | ||
); | ||
const normalizedCreds = createConfigBoundCredentialProvider(input); | ||
const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; | ||
@@ -156,2 +148,15 @@ let signer; | ||
}, "normalizeCredentialProvider"); | ||
var createConfigBoundCredentialProvider = /* @__PURE__ */ __name((input) => { | ||
const normalizedCredentialsProvider = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider( | ||
Object.assign({}, input, { | ||
parentClientConfig: input | ||
}) | ||
); | ||
const normalizedCreds = /* @__PURE__ */ __name(async () => normalizedCredentialsProvider({ | ||
callerClientConfig: { | ||
region: (0, import_util_middleware.normalizeProvider)(input.region) | ||
} | ||
}), "normalizedCreds"); | ||
return normalizedCreds; | ||
}, "createConfigBoundCredentialProvider"); | ||
@@ -158,0 +163,0 @@ // src/awsAuthMiddleware.ts |
@@ -6,7 +6,3 @@ import { memoize } from "@smithy/property-provider"; | ||
export const resolveAwsAuthConfig = (input) => { | ||
const normalizedCreds = input.credentials | ||
? normalizeCredentialProvider(input.credentials) | ||
: input.credentialDefaultProvider(Object.assign({}, input, { | ||
parentClientConfig: input, | ||
})); | ||
const normalizedCreds = createConfigBoundCredentialProvider(input); | ||
const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; | ||
@@ -83,7 +79,3 @@ let signer; | ||
export const resolveSigV4AuthConfig = (input) => { | ||
const normalizedCreds = input.credentials | ||
? normalizeCredentialProvider(input.credentials) | ||
: input.credentialDefaultProvider(Object.assign({}, input, { | ||
parentClientConfig: input, | ||
})); | ||
const normalizedCreds = createConfigBoundCredentialProvider(input); | ||
const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; | ||
@@ -118,1 +110,14 @@ let signer; | ||
}; | ||
const createConfigBoundCredentialProvider = (input) => { | ||
const normalizedCredentialsProvider = input.credentials | ||
? normalizeCredentialProvider(input.credentials) | ||
: input.credentialDefaultProvider(Object.assign({}, input, { | ||
parentClientConfig: input, | ||
})); | ||
const normalizedCreds = async () => normalizedCredentialsProvider({ | ||
callerClientConfig: { | ||
region: normalizeProvider(input.region), | ||
}, | ||
}); | ||
return normalizedCreds; | ||
}; |
@@ -5,2 +5,3 @@ import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4"; | ||
* @public | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
@@ -39,2 +40,3 @@ export interface AwsAuthInputConfig { | ||
* @public | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
@@ -59,2 +61,6 @@ export interface SigV4AuthInputConfig { | ||
} | ||
/** | ||
* @internal | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
interface PreviouslyResolved { | ||
@@ -71,2 +77,6 @@ credentialDefaultProvider: (input: any) => MemoizedProvider<AwsCredentialIdentity>; | ||
} | ||
/** | ||
* @internal | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
interface SigV4PreviouslyResolved { | ||
@@ -79,2 +89,6 @@ credentialDefaultProvider: (input: any) => MemoizedProvider<AwsCredentialIdentity>; | ||
} | ||
/** | ||
* @internal | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export interface AwsAuthResolvedConfig { | ||
@@ -100,6 +114,18 @@ /** | ||
} | ||
/** | ||
* @internal | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export interface SigV4AuthResolvedConfig extends AwsAuthResolvedConfig { | ||
} | ||
/** | ||
* @internal | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export declare const resolveAwsAuthConfig: <T>(input: T & AwsAuthInputConfig & PreviouslyResolved) => T & AwsAuthResolvedConfig; | ||
/** | ||
* @internal | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export declare const resolveSigV4AuthConfig: <T>(input: T & SigV4AuthInputConfig & SigV4PreviouslyResolved) => T & SigV4AuthResolvedConfig; | ||
export {}; |
import { FinalizeRequestMiddleware, Pluggable, RelativeMiddlewareOptions } from "@smithy/types"; | ||
import { AwsAuthResolvedConfig } from "./awsAuthConfiguration"; | ||
/** | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export declare const awsAuthMiddleware: <Input extends object, Output extends object>(options: AwsAuthResolvedConfig) => FinalizeRequestMiddleware<Input, Output>; | ||
/** | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export declare const awsAuthMiddlewareOptions: RelativeMiddlewareOptions; | ||
/** | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export declare const getAwsAuthPlugin: (options: AwsAuthResolvedConfig) => Pluggable<any, any>; | ||
/** | ||
* @deprecated only used in legacy auth. | ||
*/ | ||
export declare const getSigV4AuthPlugin: (options: AwsAuthResolvedConfig) => Pluggable<any, any>; |
{ | ||
"name": "@aws-sdk/middleware-signing", | ||
"version": "3.709.0", | ||
"version": "3.713.0", | ||
"scripts": { | ||
@@ -27,3 +27,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.709.0", | ||
"@aws-sdk/types": "3.713.0", | ||
"@smithy/property-provider": "^3.1.11", | ||
@@ -30,0 +30,0 @@ "@smithy/protocol-http": "^4.1.8", |
@@ -5,1 +5,4 @@ # @aws-sdk/signer-middleware | ||
[](https://www.npmjs.com/package/@aws-sdk/middleware-signing) | ||
This package is deprecated. It is only used in "legacy auth", and no longer used in the | ||
AWS SDK as of the Smithy Reference Architecture implementation of identity and auth. |
42788
743
8
+ Added@aws-sdk/types@3.713.0(transitive)
- Removed@aws-sdk/types@3.709.0(transitive)
Updated@aws-sdk/types@3.713.0