Skip to content

Commit

Permalink
delete :: 필터 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo committed Feb 28, 2024
1 parent dd21f7a commit c092950
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.v1oauthauthorizationservice.infrastructure.configuration.security

import com.example.v1oauthauthorizationservice.infrastructure.configuration.AuthenticationFilter
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.Ordered
Expand All @@ -12,13 +11,10 @@ import org.springframework.security.config.http.SessionCreationPolicy
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
import org.springframework.security.crypto.password.PasswordEncoder
import org.springframework.security.web.SecurityFilterChain
import org.springframework.security.web.access.intercept.AuthorizationFilter

@EnableWebSecurity(debug = true)
@Configuration
class SecurityConfiguration(
private val authenticationFilter: AuthenticationFilter
) {
class SecurityConfiguration {

@Bean
fun passwordEncoder(): PasswordEncoder = BCryptPasswordEncoder()
Expand All @@ -40,7 +36,6 @@ class SecurityConfiguration(
.sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()

httpSecurity.addFilterBefore(authenticationFilter, AuthorizationFilter::class.java)

httpSecurity
.authorizeHttpRequests { authorize ->
Expand Down

0 comments on commit c092950

Please sign in to comment.