Skip to content

Commit

Permalink
SHIBUI-2646: fixes for trailing slashes for non-PAC4J config
Browse files Browse the repository at this point in the history
  • Loading branch information
chasegawa committed Jan 7, 2025
1 parent 58cb10d commit 66123ad
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.authorizeHttpRequests()
.requestMatchers(new AntPathRequestMatcher("/unsecured/**/*"),
new AntPathRequestMatcher("/entities*"),
new AntPathRequestMatcher("/entities/**/*"),
new AntPathRequestMatcher("/entities/*"),
new AntPathRequestMatcher("/entities/**"),
new AntPathRequestMatcher("/actuator/**"),
new AntPathRequestMatcher("/api/beacon/send")).permitAll()
.anyRequest().hasAnyRole(acceptedAuthenticationRoles)
Expand Down Expand Up @@ -158,7 +159,9 @@ public InMemoryUserDetailsManager userDetailsManager() {
@Profile("!no-auth")
public WebSecurityCustomizer webSecurityCustomizer() {
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 66123ad

Please sign in to comment.