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.csrf(AbstractHttpConfigurer::disable);
http.authorizeHttpRequests(authorizationManagerRequestMatcherRegistry -> authorizationManagerRequestMatcherRegistry http.authorizeHttpRequests(registry -> registry
.requestMatchers("/api/v1/auth/**") .requestMatchers("/api/v1/auth/**")
.permitAll() .permitAll()
.anyRequest() .anyRequest()
.authenticated()); .authenticated());
http.sessionManagement(httpSecuritySessionManagementConfigurer -> { http.sessionManagement(configurer -> configurer.sessionCreationPolicy(SessionCreationPolicy.STATELESS));
httpSecuritySessionManagementConfigurer.sessionCreationPolicy(SessionCreationPolicy.STATELESS);
});
http.authenticationProvider(authenticationProvider) http.authenticationProvider(authenticationProvider)
.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class); .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);