@aws-sdk/credential-provider-sso 3.362.0 → 3.369.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,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fromSSO = void 0;
4
- const property_provider_1 = require("@aws-sdk/property-provider");
5
- const shared_ini_file_loader_1 = require("@aws-sdk/shared-ini-file-loader");
4
+ const property_provider_1 = require("@smithy/property-provider");
5
+ const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader");
6
6
  const isSsoProfile_1 = require("./isSsoProfile");
7
7
  const resolveSSOCredentials_1 = require("./resolveSSOCredentials");
8
8
  const validateSsoProfile_1 = require("./validateSsoProfile");
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveSSOCredentials = void 0;
4
4
  const client_sso_1 = require("@aws-sdk/client-sso");
5
- const property_provider_1 = require("@aws-sdk/property-provider");
6
- const shared_ini_file_loader_1 = require("@aws-sdk/shared-ini-file-loader");
7
5
  const token_providers_1 = require("@aws-sdk/token-providers");
6
+ const property_provider_1 = require("@smithy/property-provider");
7
+ const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader");
8
8
  const EXPIRE_WINDOW_MS = 15 * 60 * 1000;
9
9
  const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
10
10
  const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateSsoProfile = void 0;
4
- const property_provider_1 = require("@aws-sdk/property-provider");
4
+ const property_provider_1 = require("@smithy/property-provider");
5
5
  const validateSsoProfile = (profile) => {
6
6
  const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
7
7
  if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
@@ -1,5 +1,5 @@
1
- import { CredentialsProviderError } from "@aws-sdk/property-provider";
2
- import { getProfileName, loadSsoSessionData, parseKnownFiles, } from "@aws-sdk/shared-ini-file-loader";
1
+ import { CredentialsProviderError } from "@smithy/property-provider";
2
+ import { getProfileName, loadSsoSessionData, parseKnownFiles } from "@smithy/shared-ini-file-loader";
3
3
  import { isSsoProfile } from "./isSsoProfile";
4
4
  import { resolveSSOCredentials } from "./resolveSSOCredentials";
5
5
  import { validateSsoProfile } from "./validateSsoProfile";
@@ -1,7 +1,7 @@
1
1
  import { GetRoleCredentialsCommand, SSOClient } from "@aws-sdk/client-sso";
2
- import { CredentialsProviderError } from "@aws-sdk/property-provider";
3
- import { getSSOTokenFromFile } from "@aws-sdk/shared-ini-file-loader";
4
2
  import { fromSso as getSsoTokenProvider } from "@aws-sdk/token-providers";
3
+ import { CredentialsProviderError } from "@smithy/property-provider";
4
+ import { getSSOTokenFromFile } from "@smithy/shared-ini-file-loader";
5
5
  const EXPIRE_WINDOW_MS = 15 * 60 * 1000;
6
6
  const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
7
7
  export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => {
@@ -1,4 +1,4 @@
1
- import { CredentialsProviderError } from "@aws-sdk/property-provider";
1
+ import { CredentialsProviderError } from "@smithy/property-provider";
2
2
  export const validateSsoProfile = (profile) => {
3
3
  const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
4
4
  if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
@@ -1,6 +1,6 @@
1
1
  import { SSOClient } from "@aws-sdk/client-sso";
2
- import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
3
- import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
2
+ import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
+ import { AwsCredentialIdentityProvider } from "@smithy/types";
4
4
  /**
5
5
  * @internal
6
6
  */
@@ -1,4 +1,4 @@
1
- import { Profile } from "@aws-sdk/types";
1
+ import { Profile } from "@smithy/types";
2
2
  import { SsoProfile } from "./types";
3
3
  /**
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { AwsCredentialIdentity } from "@aws-sdk/types";
1
+ import { AwsCredentialIdentity } from "@smithy/types";
2
2
  import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
3
3
  /**
4
4
  * @private
@@ -1,6 +1,6 @@
1
1
  import { SSOClient } from "@aws-sdk/client-sso";
2
- import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
3
- import { AwsCredentialIdentityProvider } from "@aws-sdk/types";
2
+ import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
+ import { AwsCredentialIdentityProvider } from "@smithy/types";
4
4
  export interface SsoCredentialsParameters {
5
5
  ssoStartUrl: string;
6
6
  ssoSession?: string;
@@ -1,3 +1,3 @@
1
- import { Profile } from "@aws-sdk/types";
1
+ import { Profile } from "@smithy/types";
2
2
  import { SsoProfile } from "./types";
3
3
  export declare const isSsoProfile: (arg: Profile) => arg is Partial<SsoProfile>;
@@ -1,4 +1,4 @@
1
- import { AwsCredentialIdentity } from "@aws-sdk/types";
1
+ import { AwsCredentialIdentity } from "@smithy/types";
2
2
  import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
3
3
  export declare const resolveSSOCredentials: ({
4
4
  ssoStartUrl,
@@ -1,4 +1,4 @@
1
- import { Profile } from "@aws-sdk/types";
1
+ import { Profile } from "@smithy/types";
2
2
  export interface SSOToken {
3
3
  accessToken: string;
4
4
  expiresAt: string;
@@ -1,4 +1,4 @@
1
- import { Profile } from "@aws-sdk/types";
1
+ import { Profile } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.362.0",
3
+ "version": "3.369.0",
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",
@@ -24,11 +24,12 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/client-sso": "3.362.0",
28
- "@aws-sdk/property-provider": "3.357.0",
29
- "@aws-sdk/shared-ini-file-loader": "3.357.0",
30
- "@aws-sdk/token-providers": "3.362.0",
31
- "@aws-sdk/types": "3.357.0",
27
+ "@aws-sdk/client-sso": "3.369.0",
28
+ "@aws-sdk/token-providers": "3.369.0",
29
+ "@aws-sdk/types": "3.369.0",
30
+ "@smithy/property-provider": "^1.0.1",
31
+ "@smithy/shared-ini-file-loader": "^1.0.1",
32
+ "@smithy/types": "^1.1.0",
32
33
  "tslib": "^2.5.0"
33
34
  },
34
35
  "devDependencies": {