Skip to content

Commit db48fdc

Browse files
committed
Remove Outdated Auth Files
1 parent 0b11997 commit db48fdc

File tree

2 files changed

+1
-81
lines changed

2 files changed

+1
-81
lines changed

server/auth-service/src/main/kotlin/de/tum/cit/aet/auth/config/JwtAuthenticationFilter.kt

Lines changed: 0 additions & 76 deletions
This file was deleted.

server/auth-service/src/main/kotlin/de/tum/cit/aet/auth/config/SecurityConfig.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException
1616
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
1717
import org.springframework.security.crypto.password.PasswordEncoder
1818
import org.springframework.security.web.SecurityFilterChain
19-
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
2019
import org.springframework.web.cors.CorsConfiguration
2120
import org.springframework.web.cors.CorsConfigurationSource
2221
import 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
}

0 commit comments

Comments
 (0)