Skip to content

Commit

Permalink
Merge pull request #56 from wafflestudio/feat/socialLogin
Browse files Browse the repository at this point in the history
Feat/social login
  • Loading branch information
jafacode authored Jan 22, 2025
2 parents 2602d17 + 8a6d94d commit b9f3a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/toyProject7/karrot/SecurityConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import org.springframework.context.annotation.Configuration
import org.springframework.http.HttpStatus
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.oauth2.client.web.OAuth2LoginAuthenticationFilter
import org.springframework.security.web.SecurityFilterChain
import org.springframework.security.web.authentication.HttpStatusEntryPoint
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
import org.springframework.web.cors.CorsConfiguration
import org.springframework.web.cors.CorsConfigurationSource
import org.springframework.web.cors.UrlBasedCorsConfigurationSource
Expand Down Expand Up @@ -51,7 +51,7 @@ class SecurityConfig(
}
.successHandler(customAuthenticationSuccessHandler)
}
.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter::class.java)
.addFilterBefore(jwtAuthenticationFilter, OAuth2LoginAuthenticationFilter::class.java)
.build()
}

Expand Down

0 comments on commit b9f3a95

Please sign in to comment.