|
@@ -57,7 +57,7 @@ |
|
|
block discarded – undo |
|
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'); |
Please login to merge, or discard this patch.