Skip to content

Commit

Permalink
[#noissue] Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Jun 24, 2024
1 parent aa3f614 commit 4747264
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

import java.util.Objects;

import static org.springframework.security.web.util.matcher.AntPathRequestMatcher.antMatcher;

/**
* @author Taejin Koo
*/
Expand Down Expand Up @@ -88,7 +86,7 @@ public SecurityFilterChain configure(HttpSecurity http) throws Exception {
// for admin
http
.authorizeHttpRequests(customizer -> {
customizer.requestMatchers(antMatcher("/api/admin/**")).hasRole("ADMIN");
customizer.requestMatchers("/api/admin/**").hasRole("ADMIN");
})
.exceptionHandling(customizer -> {
customizer.accessDeniedPage(BasicLoginConstants.URI_NOT_AUTHORIZED);
Expand All @@ -97,8 +95,8 @@ public SecurityFilterChain configure(HttpSecurity http) throws Exception {
// for user
http.authorizeHttpRequests(customizer -> {
customizer
.requestMatchers(antMatcher("/api-public/**")).permitAll()
.requestMatchers(antMatcher("/api-ext-auth/**")).permitAll()
.requestMatchers("/api-public/**").permitAll()
.requestMatchers("/api-ext-auth/**").permitAll()
.anyRequest().authenticated();
});

Expand Down

0 comments on commit 4747264

Please sign in to comment.