Skip to content

Commit 6288dff

Browse files
authored
fix(core): use credentials provided by extensions when instantiating sigv4 signer (#6956)
* fix(core): sigv4ConfigResolver access client creds to instantiate signer * chore(clients): update smithy version for httpAuthScheme resolver * chore: codegen
1 parent f784d49 commit 6288dff

File tree

840 files changed

+2094
-1672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

840 files changed

+2094
-1672
lines changed

clients/client-accessanalyzer/src/AccessAnalyzerClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export class AccessAnalyzerClient extends __Client<
460460
const _config_4 = resolveRegionConfig(_config_3);
461461
const _config_5 = resolveHostHeaderConfig(_config_4);
462462
const _config_6 = resolveEndpointConfig(_config_5);
463-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
463+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
464464
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
465465
super(_config_8);
466466
this.config = _config_8;

clients/client-accessanalyzer/src/auth/httpAuthSchemeProvider.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
128128
/**
129129
* @internal
130130
*/
131-
export const resolveHttpAuthSchemeConfig = <T>(
132-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
131+
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
132+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
133+
{ client }: { client: () => { config: R } }
133134
): T & HttpAuthSchemeResolvedConfig => {
134-
const config_0 = resolveAwsSdkSigV4Config(config);
135+
const config_0 = resolveAwsSdkSigV4Config(config, client);
135136
return {
136137
...config_0,
137138
} as T & HttpAuthSchemeResolvedConfig;

clients/client-account/src/AccountClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export class AccountClient extends __Client<
344344
const _config_4 = resolveRegionConfig(_config_3);
345345
const _config_5 = resolveHostHeaderConfig(_config_4);
346346
const _config_6 = resolveEndpointConfig(_config_5);
347-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
347+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
348348
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
349349
super(_config_8);
350350
this.config = _config_8;

clients/client-account/src/auth/httpAuthSchemeProvider.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
130+
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132+
{ client }: { client: () => { config: R } }
132133
): T & HttpAuthSchemeResolvedConfig => {
133-
const config_0 = resolveAwsSdkSigV4Config(config);
134+
const config_0 = resolveAwsSdkSigV4Config(config, client);
134135
return {
135136
...config_0,
136137
} as T & HttpAuthSchemeResolvedConfig;

clients/client-acm-pca/src/ACMPCAClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export class ACMPCAClient extends __Client<
410410
const _config_4 = resolveRegionConfig(_config_3);
411411
const _config_5 = resolveHostHeaderConfig(_config_4);
412412
const _config_6 = resolveEndpointConfig(_config_5);
413-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
413+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
414414
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
415415
super(_config_8);
416416
this.config = _config_8;

clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
130+
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132+
{ client }: { client: () => { config: R } }
132133
): T & HttpAuthSchemeResolvedConfig => {
133-
const config_0 = resolveAwsSdkSigV4Config(config);
134+
const config_0 = resolveAwsSdkSigV4Config(config, client);
134135
return {
135136
...config_0,
136137
} as T & HttpAuthSchemeResolvedConfig;

clients/client-acm/src/ACMClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export class ACMClient extends __Client<
358358
const _config_4 = resolveRegionConfig(_config_3);
359359
const _config_5 = resolveHostHeaderConfig(_config_4);
360360
const _config_6 = resolveEndpointConfig(_config_5);
361-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
361+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
362362
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
363363
super(_config_8);
364364
this.config = _config_8;

clients/client-acm/src/auth/httpAuthSchemeProvider.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
130+
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132+
{ client }: { client: () => { config: R } }
132133
): T & HttpAuthSchemeResolvedConfig => {
133-
const config_0 = resolveAwsSdkSigV4Config(config);
134+
const config_0 = resolveAwsSdkSigV4Config(config, client);
134135
return {
135136
...config_0,
136137
} as T & HttpAuthSchemeResolvedConfig;

clients/client-amp/src/AmpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export class AmpClient extends __Client<
433433
const _config_4 = resolveRegionConfig(_config_3);
434434
const _config_5 = resolveHostHeaderConfig(_config_4);
435435
const _config_6 = resolveEndpointConfig(_config_5);
436-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
436+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
437437
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
438438
super(_config_8);
439439
this.config = _config_8;

clients/client-amp/src/auth/httpAuthSchemeProvider.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
130+
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132+
{ client }: { client: () => { config: R } }
132133
): T & HttpAuthSchemeResolvedConfig => {
133-
const config_0 = resolveAwsSdkSigV4Config(config);
134+
const config_0 = resolveAwsSdkSigV4Config(config, client);
134135
return {
135136
...config_0,
136137
} as T & HttpAuthSchemeResolvedConfig;

0 commit comments

Comments
 (0)