Skip to content

Commit

Permalink
fix:add debug logs for AuthenticationToolAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
torsten-simon committed Sep 24, 2024
1 parent d2ee437 commit d1d8751
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,11 @@ public Void doWork() throws Exception {
public HashMap<String,String> validateAuthentication(HttpSession session){
HashMap<String,String> result = null;
String currentTicket = (String)session.getAttribute(CCConstants.AUTH_TICKET);
log.debug("Session id: " + session.getId()+ ", ticket from session: " + currentTicket);
if(currentTicket != null){
try{
authenticationService.validate(currentTicket);
log.debug("Logged in as user: " + authenticationService.getCurrentUserName() + " with ticket " + authenticationService.getCurrentTicket());
result = new HashMap<>();
result.put(CCConstants.AUTH_USERNAME, authenticationService.getCurrentUserName());
result.put(CCConstants.AUTH_TICKET, currentTicket);
Expand Down

0 comments on commit d1d8751

Please sign in to comment.