@aws-sdk/credential-provider-web-identity 3.914.0 → 3.917.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ const fromWebToken_1 = require("./fromWebToken");
9
9
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
10
10
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
11
11
  const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
12
- const fromTokenFile = (init = {}) => async () => {
12
+ const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
13
13
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
14
14
  const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
15
15
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
@@ -25,7 +25,7 @@ const fromTokenFile = (init = {}) => async () => {
25
25
  (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
26
26
  roleArn,
27
27
  roleSessionName,
28
- })();
28
+ })(awsIdentityProperties);
29
29
  if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
30
30
  (0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
31
31
  }
@@ -6,7 +6,7 @@ import { fromWebToken } from "./fromWebToken";
6
6
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
7
7
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
8
8
  const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
9
- export const fromTokenFile = (init = {}) => async () => {
9
+ export const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
10
10
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
11
11
  const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
12
12
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
@@ -22,7 +22,7 @@ export const fromTokenFile = (init = {}) => async () => {
22
22
  readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
23
23
  roleArn,
24
24
  roleSessionName,
25
- })();
25
+ })(awsIdentityProperties);
26
26
  if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
27
27
  setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
28
28
  }
@@ -1,5 +1,5 @@
1
- import { CredentialProviderOptions } from "@aws-sdk/types";
2
- import type { AwsCredentialIdentityProvider } from "@smithy/types";
1
+ import type { CredentialProviderOptions } from "@aws-sdk/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types/src";
3
3
  import { FromWebTokenInit } from "./fromWebToken";
4
4
  /**
5
5
  * @public
@@ -15,4 +15,4 @@ export interface FromTokenFileInit extends Partial<Omit<FromWebTokenInit, "webId
15
15
  *
16
16
  * Represents OIDC credentials from a file on disk.
17
17
  */
18
- export declare const fromTokenFile: (init?: FromTokenFileInit) => AwsCredentialIdentityProvider;
18
+ export declare const fromTokenFile: (init?: FromTokenFileInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
1
  import { CredentialProviderOptions } from "@aws-sdk/types";
2
- import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types/src";
3
3
  import { FromWebTokenInit } from "./fromWebToken";
4
4
  export interface FromTokenFileInit
5
5
  extends Partial<
@@ -13,4 +13,4 @@ export interface FromTokenFileInit
13
13
  }
14
14
  export declare const fromTokenFile: (
15
15
  init?: FromTokenFileInit
16
- ) => AwsCredentialIdentityProvider;
16
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.914.0",
3
+ "version": "3.917.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "3.914.0",
38
- "@aws-sdk/nested-clients": "3.914.0",
37
+ "@aws-sdk/core": "3.916.0",
38
+ "@aws-sdk/nested-clients": "3.916.0",
39
39
  "@aws-sdk/types": "3.914.0",
40
40
  "@smithy/property-provider": "^4.2.3",
41
41
  "@smithy/shared-ini-file-loader": "^4.3.3",