Skip to content

Commit

Permalink
SHIBUI-2646: MDQ fixes for trailing slashes for PAC4J config
Browse files Browse the repository at this point in the history
  • Loading branch information
chasegawa committed Jan 7, 2025
1 parent 6d54702 commit 58cb10d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public AuditorAware<String> pac4jAuditorAware() {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests().requestMatchers(new AntPathRequestMatcher("/unsecured/**/*"),
new AntPathRequestMatcher("/entities/**/*"),
new AntPathRequestMatcher("/entities*"),
new AntPathRequestMatcher("/entities/*"),
new AntPathRequestMatcher("/entities/**"),
new AntPathRequestMatcher("/favicon.ico"),
new AntPathRequestMatcher("/assets/**/*.png"),
new AntPathRequestMatcher("/static/**/*"),
Expand Down Expand Up @@ -127,7 +129,9 @@ public WebSecurityCustomizer webSecurityCustomizer() {
firewall.setAllowSemicolon(true);

return (web) -> web.ignoring().requestMatchers(new AntPathRequestMatcher("/unsecured/**/*"),
new AntPathRequestMatcher("/entities/**/*"),
new AntPathRequestMatcher("/entities*"),
new AntPathRequestMatcher("/entities/*"),
new AntPathRequestMatcher("/entities/**"),
new AntPathRequestMatcher("/favicon.ico"),
new AntPathRequestMatcher("/assets/**/*.png"),
new AntPathRequestMatcher("/static/**/*"),
Expand Down

0 comments on commit 58cb10d

Please sign in to comment.