Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Check existence of subject when verifying JWT #474
- Check existence of events claim when verifying Logout Token claims #480
- exp verification when verifying Logout Token claims #482

## [1.0.1] - 2024-09-13
Expand Down
3 changes: 3 additions & 0 deletions src/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ public function verifyLogoutTokenClaims($claims): bool
return false;
}
}
else{
return false;
}

// Validate the iss
if (!$this->validateIssuer($claims->iss)) {
Expand Down
2 changes: 0 additions & 2 deletions tests/OpenIDConnectClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ public function provideTestVerifyLogoutTokenClaimsData(): array
'sid' => 'fake-client-sid',
'iat' => time(),
'exp' => time() + 300,
'nonce' => 'must-not-be-set'
],
false
],
Expand All @@ -317,7 +316,6 @@ public function provideTestVerifyLogoutTokenClaimsData(): array
'iat' => time(),
'exp' => time() + 300,
'events' => (object) [],
'nonce' => 'must-not-be-set'
],
false
],
Expand Down