Skip to content

Commit

Permalink
fix: 토큰 정보 api 에러 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Heejeong01110 committed Jan 17, 2022
1 parent 407c8a1 commit bd79ced
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public String createToken(String userPk, List<String> roles) {

public Authentication getAuthentication(String token) {
UserDetails userDetails = userDetailsService.loadUserByUsername(this.getUserPk(token));
return new UsernamePasswordAuthenticationToken(userDetails.getUsername(), userDetails.getPassword(), userDetails.getAuthorities());
return new UsernamePasswordAuthenticationToken(userDetails, "", userDetails.getAuthorities());
}

public String getUserPk(String token) {
Expand Down

0 comments on commit bd79ced

Please sign in to comment.