Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"${LATEST}": "3.356.23"
"${LATEST}": "3.356.24"
},
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
"services": {
Expand Down
1 change: 1 addition & 0 deletions src/Service/SsoOidc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- AWS api-change: Rework regions configuration
- AWS api-change: This release includes exception definition and documentation updates.

## 1.1.1

Expand Down
15 changes: 15 additions & 0 deletions src/Service/SsoOidc/src/Enum/AccessDeniedExceptionReason.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace AsyncAws\SsoOidc\Enum;

final class AccessDeniedExceptionReason
{
public const KMS_ACCESS_DENIED_EXCEPTION = 'KMS_AccessDeniedException';

public static function exists(string $value): bool
{
return isset([
self::KMS_ACCESS_DENIED_EXCEPTION => true,
][$value]);
}
}
21 changes: 21 additions & 0 deletions src/Service/SsoOidc/src/Enum/InvalidRequestExceptionReason.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace AsyncAws\SsoOidc\Enum;

final class InvalidRequestExceptionReason
{
public const KMS_DISABLED_EXCEPTION = 'KMS_DisabledException';
public const KMS_INVALID_KEY_USAGE_EXCEPTION = 'KMS_InvalidKeyUsageException';
public const KMS_INVALID_STATE_EXCEPTION = 'KMS_InvalidStateException';
public const KMS_NOT_FOUND_EXCEPTION = 'KMS_NotFoundException';

public static function exists(string $value): bool
{
return isset([
self::KMS_DISABLED_EXCEPTION => true,
self::KMS_INVALID_KEY_USAGE_EXCEPTION => true,
self::KMS_INVALID_STATE_EXCEPTION => true,
self::KMS_NOT_FOUND_EXCEPTION => true,
][$value]);
}
}
17 changes: 17 additions & 0 deletions src/Service/SsoOidc/src/Exception/AccessDeniedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace AsyncAws\SsoOidc\Exception;

use AsyncAws\Core\Exception\Http\ClientException;
use AsyncAws\SsoOidc\Enum\AccessDeniedExceptionReason;
use Symfony\Contracts\HttpClient\ResponseInterface;

/**
Expand All @@ -17,6 +18,13 @@ final class AccessDeniedException extends ClientException
*/
private $error;

/**
* A string that uniquely identifies a reason for the error.
*
* @var AccessDeniedExceptionReason::*|null
*/
private $reason;

/**
* Human-readable text providing additional information, used to assist the client developer in understanding the error
* that occurred.
Expand All @@ -35,11 +43,20 @@ public function getError_description(): ?string
return $this->error_description;
}

/**
* @return AccessDeniedExceptionReason::*|null
*/
public function getReason(): ?string
{
return $this->reason;
}

protected function populateResult(ResponseInterface $response): void
{
$data = $response->toArray(false);

$this->error = isset($data['error']) ? (string) $data['error'] : null;
$this->reason = isset($data['reason']) ? (string) $data['reason'] : null;
$this->error_description = isset($data['error_description']) ? (string) $data['error_description'] : null;
}
}
17 changes: 17 additions & 0 deletions src/Service/SsoOidc/src/Exception/InvalidRequestException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace AsyncAws\SsoOidc\Exception;

use AsyncAws\Core\Exception\Http\ClientException;
use AsyncAws\SsoOidc\Enum\InvalidRequestExceptionReason;
use Symfony\Contracts\HttpClient\ResponseInterface;

/**
Expand All @@ -18,6 +19,13 @@ final class InvalidRequestException extends ClientException
*/
private $error;

/**
* A string that uniquely identifies a reason for the error.
*
* @var InvalidRequestExceptionReason::*|null
*/
private $reason;

/**
* Human-readable text providing additional information, used to assist the client developer in understanding the error
* that occurred.
Expand All @@ -36,11 +44,20 @@ public function getError_description(): ?string
return $this->error_description;
}

/**
* @return InvalidRequestExceptionReason::*|null
*/
public function getReason(): ?string
{
return $this->reason;
}

protected function populateResult(ResponseInterface $response): void
{
$data = $response->toArray(false);

$this->error = isset($data['error']) ? (string) $data['error'] : null;
$this->reason = isset($data['reason']) ? (string) $data['reason'] : null;
$this->error_description = isset($data['error_description']) ? (string) $data['error_description'] : null;
}
}
5 changes: 2 additions & 3 deletions src/Service/SsoOidc/src/Input/CreateTokenRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ final class CreateTokenRequest extends Input
private $refreshToken;

/**
* The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes
* that are granted. If this value is not specified, IAM Identity Center authorizes all scopes that are configured for
* the client during the call to RegisterClient.
* The list of scopes for which authorization is requested. This parameter has no effect; the access token will always
* include all scopes configured during client registration.
*
* @var string[]|null
*/
Expand Down
Loading