Skip to content

Commit

Permalink
Merge pull request #1130 from Sephster/fix-code-challeneged-typo
Browse files Browse the repository at this point in the history
Fix Parameter Typo. Resolves #1129
  • Loading branch information
Sephster committed Jul 22, 2020
2 parents 09f22e8 + b3d1b1e commit 340d1ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fix typo in parameter hint. `code_challenged` changed to `code_challenge`. Thrown by Auth Code Grant when the code challenge does not match the regex. (PR #1130)

## [8.1.1] - released 2020-07-01

Expand Down
2 changes: 1 addition & 1 deletion src/Grant/AuthCodeGrant.php
Expand Up @@ -310,7 +310,7 @@ function ($method) {
// @see: https://tools.ietf.org/html/rfc7636#section-4.2
if (\preg_match('/^[A-Za-z0-9-._~]{43,128}$/', $codeChallenge) !== 1) {
throw OAuthServerException::invalidRequest(
'code_challenged',
'code_challenge',
'Code challenge must follow the specifications of RFC-7636.'
);
}
Expand Down

0 comments on commit 340d1ab

Please sign in to comment.