diff --git a/manifest.json b/manifest.json index 818f352ea..567a409ac 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "variables": { - "${LATEST}": "3.356.22" + "${LATEST}": "3.356.23" }, "endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json", "services": { diff --git a/src/Service/SsoOidc/CHANGELOG.md b/src/Service/SsoOidc/CHANGELOG.md index a99b0fcba..289317b9d 100644 --- a/src/Service/SsoOidc/CHANGELOG.md +++ b/src/Service/SsoOidc/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: Rework regions configuration + ## 1.1.1 ### Changed diff --git a/src/Service/SsoOidc/composer.json b/src/Service/SsoOidc/composer.json index f2b505322..cd080899d 100644 --- a/src/Service/SsoOidc/composer.json +++ b/src/Service/SsoOidc/composer.json @@ -27,7 +27,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "1.2-dev" } } } diff --git a/src/Service/SsoOidc/src/SsoOidcClient.php b/src/Service/SsoOidc/src/SsoOidcClient.php index f47676778..6ae97b392 100644 --- a/src/Service/SsoOidc/src/SsoOidcClient.php +++ b/src/Service/SsoOidc/src/SsoOidcClient.php @@ -6,7 +6,6 @@ use AsyncAws\Core\AwsError\AwsErrorFactoryInterface; use AsyncAws\Core\AwsError\JsonRestAwsErrorFactory; use AsyncAws\Core\Configuration; -use AsyncAws\Core\Exception\UnsupportedRegion; use AsyncAws\Core\RequestContext; use AsyncAws\SsoOidc\Exception\AccessDeniedException; use AsyncAws\SsoOidc\Exception\AuthorizationPendingException; @@ -89,44 +88,6 @@ protected function getEndpointMetadata(?string $region): array } switch ($region) { - case 'af-south-1': - case 'ap-east-1': - case 'ap-northeast-1': - case 'ap-northeast-2': - case 'ap-northeast-3': - case 'ap-south-1': - case 'ap-south-2': - case 'ap-southeast-1': - case 'ap-southeast-2': - case 'ap-southeast-3': - case 'ap-southeast-4': - case 'ap-southeast-5': - case 'ca-central-1': - case 'ca-west-1': - case 'eu-central-1': - case 'eu-central-2': - case 'eu-north-1': - case 'eu-south-1': - case 'eu-south-2': - case 'eu-west-1': - case 'eu-west-2': - case 'eu-west-3': - case 'il-central-1': - case 'me-central-1': - case 'me-south-1': - case 'sa-east-1': - case 'us-east-1': - case 'us-east-2': - case 'us-gov-east-1': - case 'us-gov-west-1': - case 'us-west-1': - case 'us-west-2': - return [ - 'endpoint' => "https://oidc.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'sso-oauth', - 'signVersions' => ['v4'], - ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -137,6 +98,11 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "SsoOidc".', $region)); + return [ + 'endpoint' => "https://oidc.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'sso-oauth', + 'signVersions' => ['v4'], + ]; } }