Skip to content

Commit

Permalink
📝 changed JwtAuthenticationFilter to not get authority
Browse files Browse the repository at this point in the history
  • Loading branch information
jafacode committed Jan 20, 2025
1 parent d2ac9ea commit 315f197
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 315f197

Please sign in to comment.