File tree Expand file tree Collapse file tree 2 files changed +1
-81
lines changed
server/auth-service/src/main/kotlin/de/tum/cit/aet/auth/config Expand file tree Collapse file tree 2 files changed +1
-81
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,17 +16,14 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException
1616import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
1717import org.springframework.security.crypto.password.PasswordEncoder
1818import org.springframework.security.web.SecurityFilterChain
19- import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
2019import org.springframework.web.cors.CorsConfiguration
2120import org.springframework.web.cors.CorsConfigurationSource
2221import org.springframework.web.cors.UrlBasedCorsConfigurationSource
2322
2423@Configuration
2524@EnableWebSecurity
2625@EnableMethodSecurity
27- class SecurityConfig (
28- private val jwtAuthenticationFilter : JwtAuthenticationFilter
29- ) {
26+ class SecurityConfig {
3027
3128 @Bean
3229 fun securityFilterChain (http : HttpSecurity , authenticationProvider : AuthenticationProvider ): SecurityFilterChain {
@@ -42,7 +39,6 @@ class SecurityConfig(
4239 session.sessionCreationPolicy(SessionCreationPolicy .STATELESS )
4340 }
4441 .authenticationProvider(authenticationProvider)
45- .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter ::class .java)
4642
4743 return http.build()
4844 }
You can’t perform that action at this time.
0 commit comments