@aws-sdk/credential-provider-sso 3.36.0 → 3.36.1
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/CHANGELOG.md +8 -0
- package/dist-types/ts3.4/index.d.ts +9 -31
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/credential-provider-sso
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -2,53 +2,31 @@ import { SSOClient } from "@aws-sdk/client-sso";
|
|
|
2
2
|
import { Profile } from "@aws-sdk/shared-ini-file-loader";
|
|
3
3
|
import { CredentialProvider } from "@aws-sdk/types";
|
|
4
4
|
import { SourceProfileInit } from "@aws-sdk/util-credentials";
|
|
5
|
-
|
|
6
|
-
* The time window (15 mins) that SDK will treat the SSO token expires in before the defined expiration date in token.
|
|
7
|
-
* This is needed because server side may have invalidated the token before the defined expiration date.
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
5
|
+
|
|
11
6
|
export declare const EXPIRE_WINDOW_MS: number;
|
|
12
7
|
export interface SsoCredentialsParameters {
|
|
13
|
-
|
|
14
|
-
* The URL to the AWS SSO service.
|
|
15
|
-
*/
|
|
8
|
+
|
|
16
9
|
ssoStartUrl: string;
|
|
17
|
-
|
|
18
|
-
* The ID of the AWS account to use for temporary credentials.
|
|
19
|
-
*/
|
|
10
|
+
|
|
20
11
|
ssoAccountId: string;
|
|
21
|
-
|
|
22
|
-
* The AWS region to use for temporary credentials.
|
|
23
|
-
*/
|
|
12
|
+
|
|
24
13
|
ssoRegion: string;
|
|
25
|
-
|
|
26
|
-
* The name of the AWS role to assume.
|
|
27
|
-
*/
|
|
14
|
+
|
|
28
15
|
ssoRoleName: string;
|
|
29
16
|
}
|
|
30
17
|
export interface FromSSOInit extends SourceProfileInit {
|
|
31
18
|
ssoClient?: SSOClient;
|
|
32
19
|
}
|
|
33
|
-
|
|
34
|
-
* Creates a credential provider that will read from a credential_process specified
|
|
35
|
-
* in ini files.
|
|
36
|
-
*/
|
|
20
|
+
|
|
37
21
|
export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) => CredentialProvider;
|
|
38
|
-
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
22
|
+
|
|
41
23
|
export interface SsoProfile extends Profile {
|
|
42
24
|
sso_start_url: string;
|
|
43
25
|
sso_account_id: string;
|
|
44
26
|
sso_region: string;
|
|
45
27
|
sso_role_name: string;
|
|
46
28
|
}
|
|
47
|
-
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
29
|
+
|
|
50
30
|
export declare const validateSsoProfile: (profile: Partial<SsoProfile>) => SsoProfile;
|
|
51
|
-
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
31
|
+
|
|
54
32
|
export declare const isSsoProfile: (arg: Profile) => arg is Partial<SsoProfile>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.36.
|
|
3
|
+
"version": "3.36.1",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/client-sso": "3.36.
|
|
25
|
+
"@aws-sdk/client-sso": "3.36.1",
|
|
26
26
|
"@aws-sdk/property-provider": "3.36.0",
|
|
27
27
|
"@aws-sdk/shared-ini-file-loader": "3.36.0",
|
|
28
28
|
"@aws-sdk/types": "3.36.0",
|