Skip to content

Commit

Permalink
Clear QubitUser cache when authenticating OIDC usr
Browse files Browse the repository at this point in the history
Address issue where cached user groups are not refreshed on login.
  • Loading branch information
sbreker committed Jun 20, 2024
1 parent 52d7f01 commit db0c3f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/arOidcPlugin/lib/oidcUser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ public function authenticate($username = null, $password = null): bool
}

$authenticated = true;
QubitUser::clearCache();

// Refresh user so new groups and credentials are immediately available on signIn().
$this->signIn(QubitUser::getById($user->id));
}
Expand Down

0 comments on commit db0c3f4

Please sign in to comment.