This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BE] refactor: 리프레시 토큰 요청 핸들러 수정 (#520)
* refactor: `RefreshTokenAuthInterceptor` 제거 * refactor: 'AuthController'의 ArgumentResolver 제거 및 예외 핸들링 * test: 테스트 케이스 작성 * test: 테스트 케이스 추가 * refactor: 쿼리 개선 및 테스트 케이스 추가 * refactor: `JwtTokenProvider`의 `inValidTokenUsage()` 제거 * chore: 서브모듈 업데이트 반영
- Loading branch information
1 parent
ec71ffc
commit d637826
Showing
18 changed files
with
331 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...org/donggle/backend/exception/authentication/InvalidAuthorizationHeaderTypeException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
.../main/java/org/donggle/backend/exception/authentication/InvalidRefreshTokenException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...in/java/org/donggle/backend/exception/authentication/NoRefreshTokenInCookieException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...main/java/org/donggle/backend/exception/authentication/RefreshTokenSecurityException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.donggle.backend.exception.authentication; | ||
|
||
public class RefreshTokenSecurityException extends UnAuthenticationException { | ||
private static final String MESSAGE = "조작된 토큰입니다."; | ||
|
||
public RefreshTokenSecurityException(final Throwable e) { | ||
super(MESSAGE, e); | ||
} | ||
|
||
@Override | ||
public String getHint() { | ||
return MESSAGE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
backend/src/main/java/org/donggle/backend/ui/common/RefreshTokenAuthInterceptor.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.