Skip to content

Commit

Permalink
πŸ› oauth2 λ¦¬λ‹€μ΄λ ‰μ…˜ μ„€μ •
Browse files Browse the repository at this point in the history
- 401 μ—λŸ¬λ₯Ό μˆ˜μ •ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.
  • Loading branch information
Ganghee-Lee-0522 committed Jan 12, 2024
1 parent b9e35e2 commit 6c075ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ protected boolean shouldNotFilter(HttpServletRequest request) throws ServletExce
|| path.equals("/login/oauth2/code/github")
|| path.equals("/health")
|| path.equals("/login")
|| path.equals("/oauth2/authorization/github")
;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public void deleteRefreshTokenByNickname(String nickname) {
public boolean validateToken(String token) {
if (!StringUtils.hasText(token)) {
// throw new AppException(ErrorCode.JWT_TOKEN_NOT_EXISTS);
throw new TokenException(ErrorCode.JWT_TOKEN_NOT_EXISTS);
// throw new TokenException(ErrorCode.JWT_TOKEN_NOT_EXISTS);
return false;
}
if(isLogout(token)){
// throw new AppException(ErrorCode.JWT_TOKEN_EXPIRED);
Expand Down

0 comments on commit 6c075ad

Please sign in to comment.