@@ -45,33 +45,33 @@ class SsoOidcClient extends AbstractApi
45
45
* '@region'?: string|null,
46
46
* }|CreateTokenRequest $input
47
47
*
48
- * @throws InvalidRequestException
48
+ * @throws AccessDeniedException
49
+ * @throws AuthorizationPendingException
50
+ * @throws ExpiredTokenException
51
+ * @throws InternalServerException
49
52
* @throws InvalidClientException
50
53
* @throws InvalidGrantException
51
- * @throws UnauthorizedClientException
52
- * @throws UnsupportedGrantTypeException
54
+ * @throws InvalidRequestException
53
55
* @throws InvalidScopeException
54
- * @throws AuthorizationPendingException
55
56
* @throws SlowDownException
56
- * @throws AccessDeniedException
57
- * @throws ExpiredTokenException
58
- * @throws InternalServerException
57
+ * @throws UnauthorizedClientException
58
+ * @throws UnsupportedGrantTypeException
59
59
*/
60
60
public function createToken ($ input ): CreateTokenResponse
61
61
{
62
62
$ input = CreateTokenRequest::create ($ input );
63
63
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'CreateToken ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
64
- 'InvalidRequestException ' => InvalidRequestException::class,
64
+ 'AccessDeniedException ' => AccessDeniedException::class,
65
+ 'AuthorizationPendingException ' => AuthorizationPendingException::class,
66
+ 'ExpiredTokenException ' => ExpiredTokenException::class,
67
+ 'InternalServerException ' => InternalServerException::class,
65
68
'InvalidClientException ' => InvalidClientException::class,
66
69
'InvalidGrantException ' => InvalidGrantException::class,
67
- 'UnauthorizedClientException ' => UnauthorizedClientException::class,
68
- 'UnsupportedGrantTypeException ' => UnsupportedGrantTypeException::class,
70
+ 'InvalidRequestException ' => InvalidRequestException::class,
69
71
'InvalidScopeException ' => InvalidScopeException::class,
70
- 'AuthorizationPendingException ' => AuthorizationPendingException::class,
71
72
'SlowDownException ' => SlowDownException::class,
72
- 'AccessDeniedException ' => AccessDeniedException::class,
73
- 'ExpiredTokenException ' => ExpiredTokenException::class,
74
- 'InternalServerException ' => InternalServerException::class,
73
+ 'UnauthorizedClientException ' => UnauthorizedClientException::class,
74
+ 'UnsupportedGrantTypeException ' => UnsupportedGrantTypeException::class,
75
75
]]));
76
76
77
77
return new CreateTokenResponse ($ response );
0 commit comments