Skip to content

Commit 6288dff

Browse files
authoredMar 21, 2025··
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

+1-1
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

+4-3
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;

0 commit comments

Comments
 (0)
Please sign in to comment.