@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();
}
-
Notifications
You must be signed in to change notification settings - Fork 0
fesabelilla/spring3-security-jwt
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published