Skip to content

Commit

Permalink
fix error message and changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Oct 30, 2024
1 parent caa904e commit b700af0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Support for PHP 8.4 (PR #1454)

### Fixed
- Fixed bug where scopes were not set on access token when using device authorization grant (PR #1412)
- Fixed device code encryption / decryption and bug where scopes were not set on access token when using device authorization grant (PR #1412)

## [9.0.1] - released 2024-10-14
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/Grant/DeviceCodeGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected function validateDeviceCode(ServerRequestInterface $request, ClientEnt
try {
$deviceCodePayload = json_decode($this->decrypt($encryptedDeviceCode));
} catch (LogicException $e) {
throw OAuthServerException::invalidRequest('code', 'Cannot decrypt the authorization code', $e);
throw OAuthServerException::invalidRequest('code', 'Cannot decrypt the device code', $e);
}

if (!property_exists($deviceCodePayload, 'device_code_id')) {
Expand Down

0 comments on commit b700af0

Please sign in to comment.