File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/com/alwinsimon/UserManagementJavaSpringBoot/Config Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .alwinsimon .UserManagementJavaSpringBoot .Config .Auth .CorsConfig ;
4
4
import com .alwinsimon .UserManagementJavaSpringBoot .Config .Filter .JwtAuthenticationFilter ;
5
- import jakarta .servlet .Filter ;
6
5
import lombok .RequiredArgsConstructor ;
7
6
import org .springframework .beans .factory .annotation .Autowired ;
8
7
import org .springframework .context .annotation .Bean ;
@@ -30,14 +29,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
30
29
31
30
http
32
31
.csrf ((csrf ) -> csrf .disable ())
33
- .cors ( cors ->cors .configurationSource (corsConfig ))
34
- .authorizeHttpRequests (authorize ->authorize
35
- .requestMatchers ("/health/" ,"/api/v1/auth/**" )
32
+ .cors (cors -> cors .configurationSource (corsConfig ))
33
+ .authorizeHttpRequests (authorize -> authorize
34
+ .requestMatchers ("/health/" , "/api/v1/auth/**" )
36
35
.permitAll ()
37
36
.anyRequest ()
38
37
.authenticated ()
39
38
)
40
- .sessionManagement ((session )-> session
39
+ .sessionManagement ((session ) -> session
41
40
.sessionCreationPolicy (SessionCreationPolicy .STATELESS )
42
41
)
43
42
.authenticationProvider (authenticationProvider )
You can’t perform that action at this time.
0 commit comments