diff --git a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/impl/authentication/RASAuthenticationService.java b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/impl/authentication/RASAuthenticationService.java index 97403543..be96d043 100644 --- a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/impl/authentication/RASAuthenticationService.java +++ b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/impl/authentication/RASAuthenticationService.java @@ -94,13 +94,13 @@ public HashMap authenticate(Map authRequest, Str } if (introspectResponse == null) { - logger.info("LOGIN FAILED ___ USER NOT AUTHENTICATED ___ INTROSPECTION RESPONSE {}", introspectResponse); + logger.info("LOGIN FAILED ___ USER NOT AUTHENTICATED ___ INTROSPECTION RESPONSE {} ___ CODE {}", introspectResponse, authRequest.get("code")); return null; } Optional initializedUser = initializeUser(introspectResponse); if (initializedUser.isEmpty()) { - logger.info("LOGIN FAILED ___ COULD NOT CREATE USER "); + logger.info("LOGIN FAILED ___ COULD NOT CREATE USER ___ INTROSPECTION RESPONSE {} ___ CODE {}", introspectResponse, authRequest.get("code")); return null; } @@ -137,7 +137,7 @@ public HashMap authenticate(Map authRequest, Str userService.save(user); HashMap responseMap = createUserClaims(user, idToken); responseMap.put("oktaIdToken", idToken); - logger.info("LOGIN SUCCESS ___ {}:{} ___ Authorization will expire at ___ {}___", user.getEmail(), user.getUuid().toString(), responseMap.get("expirationDate")); + logger.info("LOGIN SUCCESS ___ USER {}:{} ___ AUTHORIZATION WILL EXPIRE AT ___ {}___", user.getSubject(), user.getUuid().toString(), responseMap.get("expirationDate")); return responseMap; }