@aws-sdk/token-providers 3.212.0 → 3.216.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.
- package/dist-types/fromSso.d.ts +2 -2
- package/dist-types/fromStatic.d.ts +3 -3
- package/dist-types/nodeProvider.d.ts +2 -2
- package/dist-types/ts3.4/fromSso.d.ts +2 -2
- package/dist-types/ts3.4/fromStatic.d.ts +5 -3
- package/dist-types/ts3.4/nodeProvider.d.ts +4 -2
- package/dist-types/ts3.4/validateTokenExpiry.d.ts +2 -2
- package/dist-types/validateTokenExpiry.d.ts +2 -2
- package/package.json +5 -5
package/dist-types/fromSso.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
|
|
2
|
-
import {
|
|
2
|
+
import { TokenIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
export interface FromSsoInit extends SourceProfileInit {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Creates a token provider that will read from SSO token cache or ssoOidc.createToken() call.
|
|
7
7
|
*/
|
|
8
|
-
export declare const fromSso: (init?: FromSsoInit) =>
|
|
8
|
+
export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
export interface FromStaticInit {
|
|
3
|
-
token?:
|
|
3
|
+
token?: TokenIdentity;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Creates a token provider that will read from static token.
|
|
7
7
|
*/
|
|
8
|
-
export declare const fromStatic: ({ token }: FromStaticInit) =>
|
|
8
|
+
export declare const fromStatic: ({ token }: FromStaticInit) => TokenIdentityProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { FromSsoInit } from "./fromSso";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a token provider that will attempt to find token from the
|
|
@@ -15,4 +15,4 @@ import { FromSsoInit } from "./fromSso";
|
|
|
15
15
|
* @see fromSso The function used to source credentials from
|
|
16
16
|
* SSO cache or ssoOidc.createToken() call
|
|
17
17
|
*/
|
|
18
|
-
export declare const nodeProvider: (init?: FromSsoInit) =>
|
|
18
|
+
export declare const nodeProvider: (init?: FromSsoInit) => TokenIdentityProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
|
|
2
|
-
import {
|
|
2
|
+
import { TokenIdentityProvider } from "@aws-sdk/types";
|
|
3
3
|
export interface FromSsoInit extends SourceProfileInit {}
|
|
4
|
-
export declare const fromSso: (init?: FromSsoInit) =>
|
|
4
|
+
export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
export interface FromStaticInit {
|
|
3
|
-
token?:
|
|
3
|
+
token?: TokenIdentity;
|
|
4
4
|
}
|
|
5
|
-
export declare const fromStatic: ({
|
|
5
|
+
export declare const fromStatic: ({
|
|
6
|
+
token,
|
|
7
|
+
}: FromStaticInit) => TokenIdentityProvider;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { FromSsoInit } from "./fromSso";
|
|
3
|
-
export declare const nodeProvider: (
|
|
3
|
+
export declare const nodeProvider: (
|
|
4
|
+
init?: FromSsoInit
|
|
5
|
+
) => TokenIdentityProvider;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const validateTokenExpiry: (token:
|
|
1
|
+
import { TokenIdentity } from "@aws-sdk/types";
|
|
2
|
+
export declare const validateTokenExpiry: (token: TokenIdentity) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenIdentity } from "@aws-sdk/types";
|
|
2
2
|
/**
|
|
3
3
|
* Throws TokenProviderError is token is expired.
|
|
4
4
|
*/
|
|
5
|
-
export declare const validateTokenExpiry: (token:
|
|
5
|
+
export declare const validateTokenExpiry: (token: TokenIdentity) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.216.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
29
|
-
"@aws-sdk/property-provider": "3.
|
|
30
|
-
"@aws-sdk/shared-ini-file-loader": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/client-sso-oidc": "3.216.0",
|
|
29
|
+
"@aws-sdk/property-provider": "3.215.0",
|
|
30
|
+
"@aws-sdk/shared-ini-file-loader": "3.215.0",
|
|
31
|
+
"@aws-sdk/types": "3.215.0",
|
|
32
32
|
"tslib": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|