@@ -57,7 +57,7 @@ |
||
57 | 57 | } |
58 | 58 | } else { |
59 | 59 | $codeChallengeMethod = empty($requestData['code_challenge_method']) ? 'plain' : $requestData['code_challenge_method']; |
60 | - if(!in_array($codeChallengeMethod, ['plain', 'S256'])) { |
|
60 | + if (!in_array($codeChallengeMethod, ['plain', 'S256'])) { |
|
61 | 61 | throw new OAuthException('invalid_request', |
62 | 62 | 'The request includes the invalid parameter code_challenge_method. Supported : plain, S256', |
63 | 63 | 'https://tools.ietf.org/html/rfc7636#section-4'); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | int $expiresAt, ?string $requestedScope = null, ?string $redirectUri = null, |
25 | 25 | ?string $codeChallenge = null, ?string $codeChallengeMethod = null) |
26 | 26 | { |
27 | - parent::__construct($code, $scope, $clientIdentifier, $resourceOwnerIdentifier, $expiresAt, $requestedScope, $redirectUri); |
|
27 | + parent::__construct($code, $scope, $clientIdentifier, $resourceOwnerIdentifier, $expiresAt, $requestedScope, $redirectUri); |
|
28 | 28 | $this->codeChallenge = $codeChallenge; |
29 | 29 | $this->codeChallengeMethod = $codeChallengeMethod; |
30 | 30 | } |