File tree Expand file tree Collapse file tree 6 files changed +73
-3
lines changed Expand file tree Collapse file tree 6 files changed +73
-3
lines changed Original file line number Diff line number Diff line change 5
5
### Added
6
6
7
7
- AWS api-change: Rework regions configuration
8
+ - AWS api-change: This release includes exception definition and documentation updates.
8
9
9
10
## 1.1.1
10
11
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace AsyncAws \SsoOidc \Enum ;
4
+
5
+ final class AccessDeniedExceptionReason
6
+ {
7
+ public const KMS_ACCESS_DENIED_EXCEPTION = 'KMS_AccessDeniedException ' ;
8
+
9
+ public static function exists (string $ value ): bool
10
+ {
11
+ return isset ([
12
+ self ::KMS_ACCESS_DENIED_EXCEPTION => true ,
13
+ ][$ value ]);
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace AsyncAws \SsoOidc \Enum ;
4
+
5
+ final class InvalidRequestExceptionReason
6
+ {
7
+ public const KMS_DISABLED_EXCEPTION = 'KMS_DisabledException ' ;
8
+ public const KMS_INVALID_KEY_USAGE_EXCEPTION = 'KMS_InvalidKeyUsageException ' ;
9
+ public const KMS_INVALID_STATE_EXCEPTION = 'KMS_InvalidStateException ' ;
10
+ public const KMS_NOT_FOUND_EXCEPTION = 'KMS_NotFoundException ' ;
11
+
12
+ public static function exists (string $ value ): bool
13
+ {
14
+ return isset ([
15
+ self ::KMS_DISABLED_EXCEPTION => true ,
16
+ self ::KMS_INVALID_KEY_USAGE_EXCEPTION => true ,
17
+ self ::KMS_INVALID_STATE_EXCEPTION => true ,
18
+ self ::KMS_NOT_FOUND_EXCEPTION => true ,
19
+ ][$ value ]);
20
+ }
21
+ }
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \SsoOidc \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
+ use AsyncAws \SsoOidc \Enum \AccessDeniedExceptionReason ;
6
7
use Symfony \Contracts \HttpClient \ResponseInterface ;
7
8
8
9
/**
@@ -17,6 +18,13 @@ final class AccessDeniedException extends ClientException
17
18
*/
18
19
private $ error ;
19
20
21
+ /**
22
+ * A string that uniquely identifies a reason for the error.
23
+ *
24
+ * @var AccessDeniedExceptionReason::*|null
25
+ */
26
+ private $ reason ;
27
+
20
28
/**
21
29
* Human-readable text providing additional information, used to assist the client developer in understanding the error
22
30
* that occurred.
@@ -35,11 +43,20 @@ public function getError_description(): ?string
35
43
return $ this ->error_description ;
36
44
}
37
45
46
+ /**
47
+ * @return AccessDeniedExceptionReason::*|null
48
+ */
49
+ public function getReason (): ?string
50
+ {
51
+ return $ this ->reason ;
52
+ }
53
+
38
54
protected function populateResult (ResponseInterface $ response ): void
39
55
{
40
56
$ data = $ response ->toArray (false );
41
57
42
58
$ this ->error = isset ($ data ['error ' ]) ? (string ) $ data ['error ' ] : null ;
59
+ $ this ->reason = isset ($ data ['reason ' ]) ? (string ) $ data ['reason ' ] : null ;
43
60
$ this ->error_description = isset ($ data ['error_description ' ]) ? (string ) $ data ['error_description ' ] : null ;
44
61
}
45
62
}
Original file line number Diff line number Diff line change 3
3
namespace AsyncAws \SsoOidc \Exception ;
4
4
5
5
use AsyncAws \Core \Exception \Http \ClientException ;
6
+ use AsyncAws \SsoOidc \Enum \InvalidRequestExceptionReason ;
6
7
use Symfony \Contracts \HttpClient \ResponseInterface ;
7
8
8
9
/**
@@ -18,6 +19,13 @@ final class InvalidRequestException extends ClientException
18
19
*/
19
20
private $ error ;
20
21
22
+ /**
23
+ * A string that uniquely identifies a reason for the error.
24
+ *
25
+ * @var InvalidRequestExceptionReason::*|null
26
+ */
27
+ private $ reason ;
28
+
21
29
/**
22
30
* Human-readable text providing additional information, used to assist the client developer in understanding the error
23
31
* that occurred.
@@ -36,11 +44,20 @@ public function getError_description(): ?string
36
44
return $ this ->error_description ;
37
45
}
38
46
47
+ /**
48
+ * @return InvalidRequestExceptionReason::*|null
49
+ */
50
+ public function getReason (): ?string
51
+ {
52
+ return $ this ->reason ;
53
+ }
54
+
39
55
protected function populateResult (ResponseInterface $ response ): void
40
56
{
41
57
$ data = $ response ->toArray (false );
42
58
43
59
$ this ->error = isset ($ data ['error ' ]) ? (string ) $ data ['error ' ] : null ;
60
+ $ this ->reason = isset ($ data ['reason ' ]) ? (string ) $ data ['reason ' ] : null ;
44
61
$ this ->error_description = isset ($ data ['error_description ' ]) ? (string ) $ data ['error_description ' ] : null ;
45
62
}
46
63
}
Original file line number Diff line number Diff line change @@ -74,9 +74,8 @@ final class CreateTokenRequest extends Input
74
74
private $ refreshToken ;
75
75
76
76
/**
77
- * The list of scopes for which authorization is requested. The access token that is issued is limited to the scopes
78
- * that are granted. If this value is not specified, IAM Identity Center authorizes all scopes that are configured for
79
- * the client during the call to RegisterClient.
77
+ * The list of scopes for which authorization is requested. This parameter has no effect; the access token will always
78
+ * include all scopes configured during client registration.
80
79
*
81
80
* @var string[]|null
82
81
*/
You can’t perform that action at this time.
0 commit comments