Skip to content

Commit 44b6a75

Browse files
committed
update
1 parent fc3c124 commit 44b6a75

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/main/java/com/hoangtien2k3/ticketbookingapi/config/JwtAuthenticationEntryPoint.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint, Se
1313
private static final long serialVersionUID = -7858869558953243875L;
1414

1515
@Override
16-
public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException, ServletException {
16+
public void commence(HttpServletRequest httpServletRequest,
17+
HttpServletResponse httpServletResponse,
18+
AuthenticationException e)
19+
throws IOException, ServletException {
1720
httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
1821
}
1922
}

src/main/java/com/hoangtien2k3/ticketbookingapi/config/WebSecurityConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
6666
"/movies/future",
6767
"/schedule/**",
6868
"/user/register",
69-
"/user/login"
69+
"/user/login",
70+
"/book/create"
7071
).permitAll()
71-
//swagger
72+
// config swagger
7273
.antMatchers("/v2/api-docs",
7374
"/configuration/ui",
7475
"/swagger-resources/**",

0 commit comments

Comments
 (0)