Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit a72750a

Browse files
committed
add log to roles endpoint
1 parent 7dbe1c3 commit a72750a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ public ApiResponse roles(
817817
@FormParam("email") String email,
818818
@FormParam("handle") String handle,
819819
@Context HttpServletRequest request) throws Exception {
820-
820+
logger.info("auth0 roles request.");
821821
if(Utils.isEmpty(email) && Utils.isEmpty(handle))
822822
throw new APIRuntimeException(SC_BAD_REQUEST, String.format(MSG_TEMPLATE_MANDATORY, "email/handle"));
823823

@@ -832,13 +832,13 @@ public ApiResponse roles(
832832
if(user==null) {
833833
throw new APIRuntimeException(SC_UNAUTHORIZED, "Credentials are incorrect.");
834834
}
835-
835+
logger.info("auth0 roles: user found.");
836836
List<Role> roles = null;
837837
if (user.getId() != null) {
838838
roles = roleDao.getRolesBySubjectId(Long.parseLong(user.getId().getId()));
839839
}
840840
user.setRoles(roles);
841-
841+
logger.info("auth0 roles: roles assigned");
842842
// temp - just for testing
843843
user.setRegSource(userDao.generateSSOToken(Long.parseLong(user.getId().getId())));
844844

0 commit comments

Comments
 (0)