File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/github/renancvitor/inventory/infra/security Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,10 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
3535 .csrf (csrf -> csrf .disable ())
3636 .sessionManagement (sm -> sm .sessionCreationPolicy (SessionCreationPolicy .STATELESS ))
3737 .authorizeHttpRequests (auth -> auth
38- .requestMatchers (HttpMethod .POST , "/login" ).permitAll ()
39- .requestMatchers ("/v3/api-docs/**" , "/swagger-ui/**" , "/swagger-ui.html" ).permitAll ()
38+ .requestMatchers ("/health/**" ).permitAll ()
4039 .requestMatchers ("/actuator/**" ).permitAll ()
40+ .requestMatchers ("/v3/api-docs/**" , "/swagger-ui/**" , "/swagger-ui.html" ).permitAll ()
41+ .requestMatchers (HttpMethod .POST , "/login" ).permitAll ()
4142 .anyRequest ().authenticated ())
4243 .addFilterBefore (securityFilter , UsernamePasswordAuthenticationFilter .class )
4344 .build ();
You can’t perform that action at this time.
0 commit comments