@aws-sdk/credential-provider-web-identity
Advanced tools
Comparing version 3.709.0 to 3.713.0
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.fromWebToken = void 0; | ||
const fromWebToken = (init) => async () => { | ||
const fromWebToken = (init) => async (awsIdentityProperties) => { | ||
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken"); | ||
@@ -37,3 +37,10 @@ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; | ||
credentialProviderLogger: init.logger, | ||
parentClientConfig: init.parentClientConfig, | ||
...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig | ||
? { | ||
parentClientConfig: { | ||
region: awsIdentityProperties?.callerClientConfig?.region, | ||
...init.parentClientConfig, | ||
}, | ||
} | ||
: {}), | ||
}, init.clientPlugins); | ||
@@ -40,0 +47,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export const fromWebToken = (init) => async () => { | ||
export const fromWebToken = (init) => async (awsIdentityProperties) => { | ||
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken"); | ||
@@ -10,3 +10,10 @@ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; | ||
credentialProviderLogger: init.logger, | ||
parentClientConfig: init.parentClientConfig, | ||
...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig | ||
? { | ||
parentClientConfig: { | ||
region: awsIdentityProperties?.callerClientConfig?.region, | ||
...init.parentClientConfig, | ||
}, | ||
} | ||
: {}), | ||
}, init.clientPlugins); | ||
@@ -13,0 +20,0 @@ } |
@@ -1,3 +0,3 @@ | ||
import type { CredentialProviderOptions } from "@aws-sdk/types"; | ||
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; | ||
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types"; | ||
import type { AwsCredentialIdentity, Pluggable } from "@smithy/types"; | ||
/** | ||
@@ -144,3 +144,3 @@ * @public | ||
*/ | ||
export declare const fromWebToken: (init: FromWebTokenInit) => AwsCredentialIdentityProvider; | ||
export declare const fromWebToken: (init: FromWebTokenInit) => RuntimeConfigAwsCredentialIdentityProvider; | ||
export {}; |
@@ -1,7 +0,6 @@ | ||
import { CredentialProviderOptions } from "@aws-sdk/types"; | ||
import { | ||
AwsCredentialIdentity, | ||
AwsCredentialIdentityProvider, | ||
Pluggable, | ||
} from "@smithy/types"; | ||
CredentialProviderOptions, | ||
RuntimeConfigAwsCredentialIdentityProvider, | ||
} from "@aws-sdk/types"; | ||
import { AwsCredentialIdentity, Pluggable } from "@smithy/types"; | ||
export interface AssumeRoleWithWebIdentityParams { | ||
@@ -39,3 +38,3 @@ RoleArn: string; | ||
init: FromWebTokenInit | ||
) => AwsCredentialIdentityProvider; | ||
) => RuntimeConfigAwsCredentialIdentityProvider; | ||
export {}; |
{ | ||
"name": "@aws-sdk/credential-provider-web-identity", | ||
"version": "3.709.0", | ||
"version": "3.713.0", | ||
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials", | ||
@@ -36,4 +36,4 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/core": "3.709.0", | ||
"@aws-sdk/types": "3.709.0", | ||
"@aws-sdk/core": "3.713.0", | ||
"@aws-sdk/types": "3.713.0", | ||
"@smithy/property-provider": "^3.1.11", | ||
@@ -52,3 +52,3 @@ "@smithy/types": "^3.7.2", | ||
"peerDependencies": { | ||
"@aws-sdk/client-sts": "^3.709.0" | ||
"@aws-sdk/client-sts": "^3.713.0" | ||
}, | ||
@@ -55,0 +55,0 @@ "types": "./dist-types/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33197
400
- Removed@aws-sdk/core@3.709.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.713.0(transitive)
- Removed@aws-sdk/types@3.709.0(transitive)
Updated@aws-sdk/core@3.713.0
Updated@aws-sdk/types@3.713.0