diff --git a/core/src/main/java/io/aiven/klaw/service/CommonUtilsService.java b/core/src/main/java/io/aiven/klaw/service/CommonUtilsService.java index c5e5cdb6c6..2d76c05f33 100644 --- a/core/src/main/java/io/aiven/klaw/service/CommonUtilsService.java +++ b/core/src/main/java/io/aiven/klaw/service/CommonUtilsService.java @@ -109,10 +109,6 @@ public Authentication getAuthentication() { return SecurityContextHolder.getContext().getAuthentication(); } - public ArrayList getUserNameAttributes() { - return new ArrayList<>(List.of(preferredUsernameAttribute, emailAttribute)); - } - String getAuthority(Object principal) { if (enableUserAuthorizationFromAD) { if (principal instanceof DefaultOAuth2User) {