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 cb0300c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/efub/dhs/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
.authorizeRequests()
.antMatchers(HttpMethod.OPTIONS).permitAll()
.antMatchers("/programs/created",
"/programs/liked",
"/programs/registered",
"/programs/*/registrations",
"/auth/logout").authenticated()
.antMatchers("/auth/**", "/oauth/**").permitAll()
.antMatchers(HttpMethod.GET, "/programs", "/programs/*").permitAll()
.antMatchers(HttpMethod.GET).permitAll()
.antMatchers(HttpMethod.OPTIONS).permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(new JwtFilter(jwtAuthProvider), UsernamePasswordAuthenticationFilter.class)
Expand Down

0 comments on commit cb0300c

Please sign in to comment.