Skip to content

Commit

Permalink
feat: 스웨거 문서 경로 인증 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
mingulmangul committed Nov 24, 2023
1 parent 8ba5231 commit a33a01a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/com/efub/dhs/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
.and()
.authorizeRequests()
.antMatchers(HttpMethod.OPTIONS).permitAll()
.antMatchers("/programs/created",
"/programs/liked",
"/programs/registered",
"/auth/logout").authenticated()
.antMatchers("/programs/created", "/programs/liked", "/programs/registered", "/auth/logout").authenticated()
.antMatchers("/auth/**", "/oauth/**").permitAll()
.antMatchers(HttpMethod.GET, "/programs", "/programs/*").permitAll()
.antMatchers(HttpMethod.GET, "/docs", "/swagger-ui/**", "/programs", "/programs/*").permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(new JwtFilter(jwtAuthProvider), UsernamePasswordAuthenticationFilter.class)
Expand Down

0 comments on commit a33a01a

Please sign in to comment.