An open API service indexing awesome lists of open source software.

https://github.com/fesabelilla/spring3-security-jwt

This repository represents the upgraded version of the spring security (Spring3), JWT, and CSRF
https://github.com/fesabelilla/spring3-security-jwt

api csrf jwt security spring-boot spring-security

Last synced: 3 months ago
JSON representation

This repository represents the upgraded version of the spring security (Spring3), JWT, and CSRF

Awesome Lists containing this project

README

          

# spring3-security-jwt
## For spring Boot 3.1.x
```
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
return http.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth ->
auth.requestMatchers("/product/welcome", "/user/add").permitAll()
.requestMatchers("/product/**")
.authenticated()
)
.httpBasic(Customizer.withDefaults()).build();
}
```