Skip to content

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

Notifications You must be signed in to change notification settings

fesabelilla/spring3-security-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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();
}

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages