Skip to content
Snippets Groups Projects
Commit 4b76760a authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Used NoArgsConstructor for `WhoamiController`

parent b3613fd2
No related branches found
No related tags found
1 merge request!61Improve code coverage
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment