Skip to content

Commit 54df83d

Browse files
committed
chore(credential-provider-ini): pass through logger
1 parent 2cea970 commit 54df83d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/credential-provider-ini/src/resolveProfileData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const resolveProfileData = async (
5151
}
5252

5353
if (isSsoProfile(data)) {
54-
return await resolveSsoCredentials(profileName);
54+
return await resolveSsoCredentials(profileName, options);
5555
}
5656

5757
// If the profile cannot be parsed or contains neither static credentials

packages/credential-provider-ini/src/resolveSsoCredentials.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import type { SsoProfile } from "@aws-sdk/credential-provider-sso";
2+
import type { CredentialProviderOptions } from "@aws-sdk/types";
23
import type { Profile } from "@smithy/types";
34

45
/**
56
* @internal
67
*/
7-
export const resolveSsoCredentials = async (profile: string) => {
8+
export const resolveSsoCredentials = async (profile: string, options: CredentialProviderOptions = {}) => {
89
const { fromSSO } = await import("@aws-sdk/credential-provider-sso");
910
return fromSSO({
1011
profile,
12+
logger: options.logger,
1113
})();
1214
};
1315

packages/credential-provider-ini/src/resolveWebIdentityCredentials.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ export const resolveWebIdentityCredentials = async (
3434
roleArn: profile.role_arn,
3535
roleSessionName: profile.role_session_name,
3636
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
37+
logger: options.logger,
3738
})()
3839
);

0 commit comments

Comments
 (0)