Skip to content
Snippets Groups Projects
Commit f967e4aa authored by Alexander Lovett's avatar Alexander Lovett
Browse files

Sonar fixes.

parent 3eabcf60
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.security.core.Authentication;
......@@ -13,13 +14,13 @@ import org.springframework.security.web.authentication.SavedRequestAwareAuthenti
import org.springframework.stereotype.Component;
@Component
@Slf4j
public class LGAuthenticationSuccessHandler extends SavedRequestAwareAuthenticationSuccessHandler {
private static final Logger LOGGER = LogManager.getLogger(LGAuthenticationSuccessHandler.class);
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication auth)
throws IOException, ServletException {
LOGGER.info("Authentication success");
log.info("Authentication success");
getRedirectStrategy().sendRedirect(request, response, "/");
}
......
package org.geant.lgservice;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class LookingGlassServiceApplicationTests {
@Test
public void contextLoads() {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment