Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add option to invalidate tokens on user logout #335

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Add option to invalidate tokens on user logout
JammingBen committed May 25, 2022
commit ae628da9f4ab02d51cf5cf4d8525bf8888b4d6e0
6 changes: 3 additions & 3 deletions lib/Hooks/UserHooks.php
Original file line number Diff line number Diff line change
@@ -111,9 +111,9 @@ public function register() {
$clientsWithInvalidate = $this->clientMapper->findInvalidateOnLogout();

foreach ($clientsWithInvalidate as $client) {
// $this->authorizationCodeMapper->deleteByClientUser($client->getId(), $user->getUID());
// $this->accessTokenMapper->deleteByClientUser($client->getId(), $user->getUID());
// $this->refreshTokenMapper->deleteByClientUser($client->getId(), $user->getUID());
$this->authorizationCodeMapper->deleteByClientUser($client->getId(), $user->getUID());
$this->accessTokenMapper->deleteByClientUser($client->getId(), $user->getUID());
$this->refreshTokenMapper->deleteByClientUser($client->getId(), $user->getUID());
}

return null;