Skip to content

Commit

Permalink
Merge pull request #93 from prgrms-web-devcourse-final-project/refact…
Browse files Browse the repository at this point in the history
…or/pet_mission

Refactor/pet mission
  • Loading branch information
LJW22222 authored Dec 9, 2024
2 parents c81a6b0 + 833e596 commit ba4e348
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class FailedAuthenticationEntryPoint implements AuthenticationEntryPoint {

@Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {
System.out.println("request.getRequestURI() :: " + request.getRequestURI());
System.out.println("request.getQueryString() :: " + request.getQueryString());
response.setContentType("application/json");
response.setStatus(HttpServletResponse.SC_FORBIDDEN); // 403 상태 반환
response.getWriter().write("{\"code\":\"NP\",\"message\":\"No Permission.\"}"); // 인증 실패 메시지
Expand Down

0 comments on commit ba4e348

Please sign in to comment.