Skip to content

Commit

Permalink
[chore] log
Browse files Browse the repository at this point in the history
  • Loading branch information
suhyeon7497 committed Nov 14, 2024
1 parent 2ab22fa commit 4d9f279
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;

import java.io.IOException;

@Slf4j
public class LoginAuthenticationEntryPoint implements AuthenticationEntryPoint {

@Value("${spring.redirect.front-end-url}")
private String frontEndUrl;

@Override
public void commence(HttpServletRequest request, HttpServletResponse response,
AuthenticationException authException) throws IOException {
AuthenticationException authException) throws IOException {
log.info("authentication entryPoint");
response.sendRedirect(frontEndUrl);
}
}

0 comments on commit 4d9f279

Please sign in to comment.