Skip to content

Commit

Permalink
Fix: Security Config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
LSBsity committed Aug 3, 2024
1 parent 84c9ebb commit 6ae3d6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/team5/doghae/common/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class SecurityConfig {
"/oauth2/refresh",
"/actuator/**",
"/api/**",
"/test",
"/",
""
};
Expand Down Expand Up @@ -68,7 +69,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
)
.authorizeHttpRequests(request -> request
.requestMatchers("/", "/swagger-ui/**", "/v3/api-docs/**").permitAll()
.requestMatchers("/static/**", "/index.html", "/oauth2/**", "/weather").permitAll()
.requestMatchers("/static/**", "/index.html", "/oauth2/**").permitAll()
.anyRequest().authenticated())
.addFilterBefore(new JwtAuthenticationFilter(jwtProvider, permitAlls), UsernamePasswordAuthenticationFilter.class)
.addFilterBefore(new JwtAuthenticationEntryPoint(objectMapper()), JwtAuthenticationFilter.class);
Expand Down

0 comments on commit 6ae3d6a

Please sign in to comment.