Skip to content

Commit

Permalink
Enforce authentication for all endpoints in SecurityConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoMeireles55 committed Jan 19, 2025
1 parent 8c4ebac commit 27ad34b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
req.requestMatchers(HttpMethod.DELETE, "/users/**");

// All other endpoints require authentication
req.anyRequest().permitAll();
req.anyRequest().authenticated();
}).addFilterBefore(securityFilter, UsernamePasswordAuthenticationFilter.class)
.build();
}
Expand Down

0 comments on commit 27ad34b

Please sign in to comment.