@aws-sdk/token-providers 3.998.0 → 3.999.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-cjs/index.js +2 -2
- package/dist-es/writeSSOTokenToFile.js +1 -1
- package/dist-types/fromSso.d.ts +2 -2
- package/dist-types/fromStatic.d.ts +1 -1
- package/dist-types/getNewSsoOidcToken.d.ts +2 -2
- package/dist-types/getSsoOidcClient.d.ts +1 -1
- package/dist-types/nodeProvider.d.ts +2 -2
- package/dist-types/validateTokenExpiry.d.ts +1 -1
- package/dist-types/writeSSOTokenToFile.d.ts +1 -1
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var client = require('@aws-sdk/core/client');
|
|
|
4
4
|
var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');
|
|
5
5
|
var propertyProvider = require('@smithy/property-provider');
|
|
6
6
|
var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
|
|
7
|
-
var
|
|
7
|
+
var node_fs = require('node:fs');
|
|
8
8
|
|
|
9
9
|
const fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
|
|
10
10
|
logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
|
|
@@ -57,7 +57,7 @@ const validateTokenKey = (key, value, forRefresh = false) => {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
const { writeFile } =
|
|
60
|
+
const { writeFile } = node_fs.promises;
|
|
61
61
|
const writeSSOTokenToFile = (id, ssoToken) => {
|
|
62
62
|
const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
|
|
63
63
|
const tokenString = JSON.stringify(ssoToken, null, 2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getSSOTokenFilepath } from "@smithy/shared-ini-file-loader";
|
|
2
|
-
import { promises as fsPromises } from "fs";
|
|
2
|
+
import { promises as fsPromises } from "node:fs";
|
|
3
3
|
const { writeFile } = fsPromises;
|
|
4
4
|
export const writeSSOTokenToFile = (id, ssoToken) => {
|
|
5
5
|
const tokenFilepath = getSSOTokenFilepath(id);
|
package/dist-types/fromSso.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
|
|
2
|
-
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
|
|
2
|
+
import type { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
3
|
export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions {
|
|
4
4
|
/**
|
|
5
5
|
* @see SSOOIDCClientConfig in \@aws-sdk/client-sso-oidc.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
|
|
1
|
+
import type { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
export interface FromStaticInit extends CredentialProviderOptions {
|
|
3
3
|
token?: TokenIdentity;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AwsIdentityProperties } from "@aws-sdk/types";
|
|
2
|
-
import { SSOToken } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { FromSsoInit } from "./fromSso";
|
|
2
|
+
import type { SSOToken } from "@smithy/shared-ini-file-loader";
|
|
3
|
+
import type { FromSsoInit } from "./fromSso";
|
|
4
4
|
/**
|
|
5
5
|
* Returns a new SSO OIDC token from SSOOIDC::createToken() API call.
|
|
6
6
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
|
-
import { FromSsoInit } from "./fromSso";
|
|
1
|
+
import type { TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
|
+
import type { FromSsoInit } from "./fromSso";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a token provider that will attempt to find token from the
|
|
5
5
|
* following sources (listed in order of precedence):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.999.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.973.
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
34
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
+
"@aws-sdk/core": "^3.973.15",
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.996.3",
|
|
34
|
+
"@aws-sdk/types": "^3.973.4",
|
|
35
35
|
"@smithy/property-provider": "^4.2.10",
|
|
36
36
|
"@smithy/shared-ini-file-loader": "^4.4.5",
|
|
37
37
|
"@smithy/types": "^4.13.0",
|