diff --git a/doorip-api/src/main/java/org/doorip/auth/config/SecurityConfig.java b/doorip-api/src/main/java/org/doorip/auth/config/SecurityConfig.java index 7159e83..e221629 100644 --- a/doorip-api/src/main/java/org/doorip/auth/config/SecurityConfig.java +++ b/doorip-api/src/main/java/org/doorip/auth/config/SecurityConfig.java @@ -38,11 +38,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .exceptionHandling(exceptionHandlingConfigurer -> exceptionHandlingConfigurer .authenticationEntryPoint(jwtAuthenticationEntryPoint)) - .authorizeHttpRequests(authorizationManagerRequestMatcherRegistry -> { - authorizationManagerRequestMatcherRegistry - .anyRequest() - .authenticated(); - }) + .authorizeHttpRequests(authorizationManagerRequestMatcherRegistry -> + authorizationManagerRequestMatcherRegistry + .anyRequest() + .authenticated()) .addFilterBefore(new JwtAuthenticationFilter(jwtValidator, jwtProvider), UsernamePasswordAuthenticationFilter.class) .addFilterBefore(new ExceptionHandlerFilter(), JwtAuthenticationFilter.class) .build();