Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#336 secretKey 파싱 오류 수정 #337

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

psyeon1120
Copy link
Member

📍 이슈 번호


🛠️ 작업 내용

  • io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
  • 토큰 생성할 때 secretKey와 파싱할 때 secretKey가 달라서 발생하는 문제였습니다.
  • 참고자료

@psyeon1120 psyeon1120 added the 🚑 hotfix 급한 버그 해결 label Jul 15, 2024
@psyeon1120 psyeon1120 self-assigned this Jul 15, 2024
@psyeon1120 psyeon1120 requested a review from sojungpp as a code owner July 15, 2024 12:29
.setHeaderParam("typ", "JWT")
.setClaims(claims)
.setExpiration(ext)
.signWith(SignatureAlgorithm.HS256, secretKey.getBytes())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런식으로 여기파일에 있는 secretKey를 secretKey.getBytes()로 바꿔줬어요! 코드 링크 복사 안되는 컴퓨터 이슈,,,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인 !! 고마옹

@sojungpp sojungpp merged commit f86e371 into develop Jul 15, 2024
1 check passed
@sojungpp sojungpp deleted the hotfix/#336-secretkey-parsing branch July 15, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚑 hotfix 급한 버그 해결
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[hotfix] TokenUtils에서 secretKey 파싱 오류 수정
2 participants