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
- Host: GitHub
- URL: https://github.com/fesabelilla/spring3-security-jwt
- Owner: fesabelilla
- Created: 2024-02-04T17:16:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-28T16:57:31.000Z (about 2 years ago)
- Last Synced: 2025-05-30T16:19:53.895Z (about 1 year ago)
- Topics: api, csrf, jwt, security, spring-boot, spring-security
- Language: Java
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
}
```