diff --git a/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/security/WhoamiController.java b/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/security/WhoamiController.java index e04342872d10fb7839684f9ce376e91441ae08f0..f9efaf00a7e1e841e4a9b80f62297fb9916c8789 100644 --- a/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/security/WhoamiController.java +++ b/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/security/WhoamiController.java @@ -14,6 +14,7 @@ package org.opengroup.osdu.legal.azure.security; +import lombok.NoArgsConstructor; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; @@ -21,6 +22,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; +@NoArgsConstructor @Controller public class WhoamiController { @@ -31,9 +33,6 @@ public class WhoamiController { this.securityContext = securityContext; } - public WhoamiController() { - } - @RequestMapping(value = "/whoami") @ResponseBody public String whoami() {