@aws-sdk/credential-provider-web-identity 3.295.0 → 3.303.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.
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { FromWebTokenInit } from "./fromWebToken";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface FromTokenFileInit extends Partial<Omit<FromWebTokenInit, "webIdentityToken">> {
|
|
4
7
|
/**
|
|
5
8
|
* File location of where the `OIDC` token is stored.
|
|
@@ -7,6 +10,8 @@ export interface FromTokenFileInit extends Partial<Omit<FromWebTokenInit, "webId
|
|
|
7
10
|
webIdentityTokenFile?: string;
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*
|
|
10
15
|
* Represents OIDC credentials from a file on disk.
|
|
11
16
|
*/
|
|
12
17
|
export declare const fromTokenFile: (init?: FromTokenFileInit) => AwsCredentialIdentityProvider;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
2
5
|
export interface AssumeRoleWithWebIdentityParams {
|
|
3
6
|
/**
|
|
4
7
|
* <p>The Amazon Resource Name (ARN) of the role that the caller is assuming.</p>
|
|
@@ -109,6 +112,9 @@ export interface AssumeRoleWithWebIdentityParams {
|
|
|
109
112
|
type LowerCaseKey<T> = {
|
|
110
113
|
[K in keyof T as `${Uncapitalize<string & K>}`]: T[K];
|
|
111
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
112
118
|
export interface FromWebTokenInit extends Omit<LowerCaseKey<AssumeRoleWithWebIdentityParams>, "roleSessionName"> {
|
|
113
119
|
/**
|
|
114
120
|
* The IAM session name used to distinguish sessions.
|
|
@@ -122,5 +128,8 @@ export interface FromWebTokenInit extends Omit<LowerCaseKey<AssumeRoleWithWebIde
|
|
|
122
128
|
*/
|
|
123
129
|
roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<AwsCredentialIdentity>;
|
|
124
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
125
134
|
export declare const fromWebToken: (init: FromWebTokenInit) => AwsCredentialIdentityProvider;
|
|
126
135
|
export {};
|
package/dist-types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.303.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",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@aws-sdk/property-provider": "3.
|
|
36
|
-
"@aws-sdk/types": "3.
|
|
35
|
+
"@aws-sdk/property-provider": "3.303.0",
|
|
36
|
+
"@aws-sdk/types": "3.303.0",
|
|
37
37
|
"tslib": "^2.5.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|