improve variable names
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2024-08-07 21:30:30 +02:00
parent 72e7af7a35
commit fea42d33eb

View File

@ -38,15 +38,13 @@ public class SecurityConfiguration
http.csrf(AbstractHttpConfigurer::disable);
http.authorizeHttpRequests(authorizationManagerRequestMatcherRegistry -> authorizationManagerRequestMatcherRegistry
http.authorizeHttpRequests(registry -> registry
.requestMatchers("/api/v1/auth/**")
.permitAll()
.anyRequest()
.authenticated());
http.sessionManagement(httpSecuritySessionManagementConfigurer -> {
httpSecuritySessionManagementConfigurer.sessionCreationPolicy(SessionCreationPolicy.STATELESS);
});
http.sessionManagement(configurer -> configurer.sessionCreationPolicy(SessionCreationPolicy.STATELESS));
http.authenticationProvider(authenticationProvider)
.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);