Skip to content

Commit

Permalink
fix. security 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
soyesenna committed Jun 5, 2024
1 parent 26ce19a commit 7877dd9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.authorizeHttpRequests((authorizeRequest) -> authorizeRequest
// .requestMatchers("/posts/new", "/comments/save").hasRole(Role.USER.name())
// .requestMatchers("/", "/css/**", "images/**", "/js/**", "/login/*", "/logout/*", "/posts/**", "/comments/**").permitAll()
.anyRequest().permitAll()
// .anyRequest().permitAll()
.requestMatchers("/review/**", "/payment/**").authenticated()
.anyRequest().permitAll()
)
.logout(
(logoutConfig) -> logoutConfig.logoutSuccessUrl("/")
Expand All @@ -44,7 +45,6 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
oAuth.userInfoEndpoint(userInfo -> userInfo.userService(oAuth2UserService));
oAuth.successHandler(authenticationSuccessHandler);
}

);

return http.build();
Expand Down

0 comments on commit 7877dd9

Please sign in to comment.