Skip to content

Commit

Permalink
Always remove user from LTI cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
rute-santos committed Sep 27, 2024
1 parent b0e0131 commit 613447b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ public Authentication createAuthentication(HttpServletRequest request, ConsumerA
logger.debug("Concurrent access of user {}. Ignoring.", username);
} else if (!ltiRolesForUserCreation.contains("*") && !requestContainsMatchingRoles(request)) {
logger.debug("No JpaUserReference will be created for LTI user {}.", username);
// Remove user from the cache; next time, the user may have additional/different roles.
activePersistenceTransactions.remove(username);
} else {
try {
JpaOrganization organization = fromOrganization(securityService.getOrganization());
Expand Down

0 comments on commit 613447b

Please sign in to comment.