Skip to content

Commit 617010a

Browse files
committed
chore(security): release endpoint
1 parent d13fd1f commit 617010a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/renancvitor/inventory/infra/security/SecurityConfiguration.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)