@aws-sdk/client-sso-oidc
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -6,6 +6,15 @@ # Change Log | ||
# 1.0.0-alpha.5 (2020-01-13) | ||
# 1.0.0-alpha.6 (2020-01-14) | ||
# 1.0.0-alpha.3 (2020-01-14) | ||
### Bug Fixes | ||
* update clients with correct endpoint prefix ([#720](https://github.com/aws/aws-sdk-js-v3/issues/720)) ([5356dbb](https://github.com/aws/aws-sdk-js-v3/commit/5356dbb)) | ||
# 1.0.0-alpha.2 (2020-01-10) | ||
@@ -35,2 +44,35 @@ | ||
# 1.0.0-alpha.5 (2020-01-14) | ||
### Bug Fixes | ||
* update clients with correct endpoint prefix ([#720](https://github.com/aws/aws-sdk-js-v3/issues/720)) ([5356dbb](https://github.com/aws/aws-sdk-js-v3/commit/5356dbb)) | ||
# 1.0.0-alpha.2 (2020-01-10) | ||
### Features | ||
* update clients ([#717](https://github.com/aws/aws-sdk-js-v3/issues/717)) ([dc9464f](https://github.com/aws/aws-sdk-js-v3/commit/dc9464f)), closes [#694](https://github.com/aws/aws-sdk-js-v3/issues/694) [smithy-typescript#66](https://github.com/smithy-typescript/issues/66) [smithy-typescript#87](https://github.com/smithy-typescript/issues/87) | ||
# 1.0.0-alpha.1 (2020-01-10) | ||
# 0.9.0 (2020-01-09) | ||
### Features | ||
* add client-sso-oidc ([#643](https://github.com/aws/aws-sdk-js-v3/issues/643)) ([1fb367c](https://github.com/aws/aws-sdk-js-v3/commit/1fb367c)) | ||
# 1.0.0-alpha.4 (2020-01-10) | ||
@@ -37,0 +79,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Partition default templates | ||
const AWS_TEMPLATE = "awsssooidc.{region}.amazonaws.com"; | ||
const AWS_CN_TEMPLATE = "awsssooidc.{region}.amazonaws.com.cn"; | ||
const AWS_ISO_TEMPLATE = "awsssooidc.{region}.c2s.ic.gov"; | ||
const AWS_ISO_B_TEMPLATE = "awsssooidc.{region}.sc2s.sgov.gov"; | ||
const AWS_US_GOV_TEMPLATE = "awsssooidc.{region}.amazonaws.com"; | ||
const AWS_TEMPLATE = "oidc.{region}.amazonaws.com"; | ||
const AWS_CN_TEMPLATE = "oidc.{region}.amazonaws.com.cn"; | ||
const AWS_ISO_TEMPLATE = "oidc.{region}.c2s.ic.gov"; | ||
const AWS_ISO_B_TEMPLATE = "oidc.{region}.sc2s.sgov.gov"; | ||
const AWS_US_GOV_TEMPLATE = "oidc.{region}.amazonaws.com"; | ||
// Partition regions | ||
@@ -38,2 +38,56 @@ const AWS_REGIONS = new Set([ | ||
// First, try to match exact region names. | ||
case "ap-southeast-1": | ||
regionInfo = { | ||
hostname: "oidc.ap-southeast-1.amazonaws.com", | ||
signingRegion: "ap-southeast-1" | ||
}; | ||
break; | ||
case "ap-southeast-2": | ||
regionInfo = { | ||
hostname: "oidc.ap-southeast-2.amazonaws.com", | ||
signingRegion: "ap-southeast-2" | ||
}; | ||
break; | ||
case "ca-central-1": | ||
regionInfo = { | ||
hostname: "oidc.ca-central-1.amazonaws.com", | ||
signingRegion: "ca-central-1" | ||
}; | ||
break; | ||
case "eu-central-1": | ||
regionInfo = { | ||
hostname: "oidc.eu-central-1.amazonaws.com", | ||
signingRegion: "eu-central-1" | ||
}; | ||
break; | ||
case "eu-west-1": | ||
regionInfo = { | ||
hostname: "oidc.eu-west-1.amazonaws.com", | ||
signingRegion: "eu-west-1" | ||
}; | ||
break; | ||
case "eu-west-2": | ||
regionInfo = { | ||
hostname: "oidc.eu-west-2.amazonaws.com", | ||
signingRegion: "eu-west-2" | ||
}; | ||
break; | ||
case "us-east-1": | ||
regionInfo = { | ||
hostname: "oidc.us-east-1.amazonaws.com", | ||
signingRegion: "us-east-1" | ||
}; | ||
break; | ||
case "us-east-2": | ||
regionInfo = { | ||
hostname: "oidc.us-east-2.amazonaws.com", | ||
signingRegion: "us-east-2" | ||
}; | ||
break; | ||
case "us-west-2": | ||
regionInfo = { | ||
hostname: "oidc.us-west-2.amazonaws.com", | ||
signingRegion: "us-west-2" | ||
}; | ||
break; | ||
// Next, try to match partition endpoints. | ||
@@ -40,0 +94,0 @@ default: |
{ | ||
"name": "@aws-sdk/client-sso-oidc", | ||
"description": "@aws-sdk/client-sso-oidc client", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"scripts": { | ||
@@ -29,3 +29,3 @@ "clean": "npm run remove-definitions && npm run remove-dist && npm run remove-js && npm run remove-maps", | ||
"@aws-crypto/sha256-browser": "^0.1.0-preview.1", | ||
"@aws-sdk/config-resolver": "^1.0.0-alpha.3", | ||
"@aws-sdk/config-resolver": "^1.0.0-alpha.4", | ||
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.2", | ||
@@ -39,3 +39,3 @@ "@aws-sdk/fetch-http-handler": "^1.0.0-alpha.3", | ||
"@aws-sdk/middleware-serde": "^1.0.0-alpha.2", | ||
"@aws-sdk/middleware-signing": "^1.0.0-alpha.3", | ||
"@aws-sdk/middleware-signing": "^1.0.0-alpha.4", | ||
"@aws-sdk/middleware-stack": "^1.0.0-alpha.2", | ||
@@ -42,0 +42,0 @@ "@aws-sdk/middleware-user-agent": "^1.0.0-alpha.3", |
import { RegionInfo, RegionInfoProvider } from "@aws-sdk/types"; | ||
// Partition default templates | ||
const AWS_TEMPLATE = "awsssooidc.{region}.amazonaws.com"; | ||
const AWS_CN_TEMPLATE = "awsssooidc.{region}.amazonaws.com.cn"; | ||
const AWS_ISO_TEMPLATE = "awsssooidc.{region}.c2s.ic.gov"; | ||
const AWS_ISO_B_TEMPLATE = "awsssooidc.{region}.sc2s.sgov.gov"; | ||
const AWS_US_GOV_TEMPLATE = "awsssooidc.{region}.amazonaws.com"; | ||
const AWS_TEMPLATE = "oidc.{region}.amazonaws.com"; | ||
const AWS_CN_TEMPLATE = "oidc.{region}.amazonaws.com.cn"; | ||
const AWS_ISO_TEMPLATE = "oidc.{region}.c2s.ic.gov"; | ||
const AWS_ISO_B_TEMPLATE = "oidc.{region}.sc2s.sgov.gov"; | ||
const AWS_US_GOV_TEMPLATE = "oidc.{region}.amazonaws.com"; | ||
@@ -43,2 +43,56 @@ // Partition regions | ||
// First, try to match exact region names. | ||
case "ap-southeast-1": | ||
regionInfo = { | ||
hostname: "oidc.ap-southeast-1.amazonaws.com", | ||
signingRegion: "ap-southeast-1" | ||
}; | ||
break; | ||
case "ap-southeast-2": | ||
regionInfo = { | ||
hostname: "oidc.ap-southeast-2.amazonaws.com", | ||
signingRegion: "ap-southeast-2" | ||
}; | ||
break; | ||
case "ca-central-1": | ||
regionInfo = { | ||
hostname: "oidc.ca-central-1.amazonaws.com", | ||
signingRegion: "ca-central-1" | ||
}; | ||
break; | ||
case "eu-central-1": | ||
regionInfo = { | ||
hostname: "oidc.eu-central-1.amazonaws.com", | ||
signingRegion: "eu-central-1" | ||
}; | ||
break; | ||
case "eu-west-1": | ||
regionInfo = { | ||
hostname: "oidc.eu-west-1.amazonaws.com", | ||
signingRegion: "eu-west-1" | ||
}; | ||
break; | ||
case "eu-west-2": | ||
regionInfo = { | ||
hostname: "oidc.eu-west-2.amazonaws.com", | ||
signingRegion: "eu-west-2" | ||
}; | ||
break; | ||
case "us-east-1": | ||
regionInfo = { | ||
hostname: "oidc.us-east-1.amazonaws.com", | ||
signingRegion: "us-east-1" | ||
}; | ||
break; | ||
case "us-east-2": | ||
regionInfo = { | ||
hostname: "oidc.us-east-2.amazonaws.com", | ||
signingRegion: "us-east-2" | ||
}; | ||
break; | ||
case "us-west-2": | ||
regionInfo = { | ||
hostname: "oidc.us-west-2.amazonaws.com", | ||
signingRegion: "us-west-2" | ||
}; | ||
break; | ||
// Next, try to match partition endpoints. | ||
@@ -45,0 +99,0 @@ default: |
{ | ||
"name": "@aws-sdk/client-sso-oidc", | ||
"description": "@aws-sdk/client-sso-oidc client", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"scripts": { | ||
@@ -29,3 +29,3 @@ "clean": "npm run remove-definitions && npm run remove-dist && npm run remove-js && npm run remove-maps", | ||
"@aws-crypto/sha256-browser": "^0.1.0-preview.1", | ||
"@aws-sdk/config-resolver": "^1.0.0-alpha.3", | ||
"@aws-sdk/config-resolver": "^1.0.0-alpha.4", | ||
"@aws-sdk/credential-provider-node": "^1.0.0-alpha.2", | ||
@@ -39,3 +39,3 @@ "@aws-sdk/fetch-http-handler": "^1.0.0-alpha.3", | ||
"@aws-sdk/middleware-serde": "^1.0.0-alpha.2", | ||
"@aws-sdk/middleware-signing": "^1.0.0-alpha.3", | ||
"@aws-sdk/middleware-signing": "^1.0.0-alpha.4", | ||
"@aws-sdk/middleware-stack": "^1.0.0-alpha.2", | ||
@@ -42,0 +42,0 @@ "@aws-sdk/middleware-user-agent": "^1.0.0-alpha.3", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200194
3855