Skip to content

Commit bdbff78

Browse files
author
Andre Felipe de Barros Azevedo Nogueira
committed
feat(config): Allow Swagger UI access in Spring Security
1 parent 9283377 commit bdbff78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

securetimenotes/src/main/java/securetimenotes/andrefelipebarros/securetimenotes/infra/security/SecurityConfiguration.java

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
3636
.requestMatchers(HttpMethod.POST, "auth/login").permitAll()
3737
.requestMatchers(HttpMethod.POST, "auth/register").permitAll()
3838
.requestMatchers("/h2-console/**").permitAll()
39+
.requestMatchers("/swagger").permitAll()
3940
.anyRequest().authenticated()
4041
)
4142
.addFilterBefore(securityFilter, UsernamePasswordAuthenticationFilter.class)

0 commit comments

Comments
 (0)