Skip to content

Commit

Permalink
Merge pull request #48 from wafflestudio/feat/socialLogin
Browse files Browse the repository at this point in the history
소셜로그인 보안 문제 디버깅
  • Loading branch information
jafacode authored Jan 21, 2025
2 parents 15e68e1 + 315f197 commit cf2cacd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ class JwtAuthenticationFilter(
val userId = UserAccessTokenUtil.getUserIdFromToken(token)

// Load user details
val userDetails = userService.loadSocialUserById(userId)
val userDetails = userService.getUserEntityById(userId)

// Create authentication token
val authentication =
UsernamePasswordAuthenticationToken(
userDetails,
userDetails.nickname,
null,
userDetails.authorities,
)
authentication.details = WebAuthenticationDetailsSource().buildDetails(request)

Expand Down

0 comments on commit cf2cacd

Please sign in to comment.