Skip to content

Commit

Permalink
Refactor caching key declarations and cleanup user service calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Jul 8, 2024
1 parent d9a6955 commit 07b0804
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pic-sure-auth-services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
<version>3.2.4</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
<version>3.3.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy -->
<dependency>
<groupId>net.bytebuddy</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public HashMap<String, String> authenticate(Map<String, String> authRequest, Str
if (!current_user.getEmail().isEmpty()) {
String email = current_user.getEmail();
accessRuleService.evictFromCache(email);
// userService.evictFromCache(current_user.getEmail());
userService.evictFromCache(email);
}
} catch (Exception ex) {
logger.error("getFENCEToken() Could not persist the user information, because {}", ex.getMessage());
Expand Down

0 comments on commit 07b0804

Please sign in to comment.