-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
64 additions
and
61 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
src/main/kotlin/b1nd/tokenserver/auth/application/outport/TokenPort.kt
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/kotlin/b1nd/tokenserver/auth/domain/model/exception/Exception.kt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...nd/tokenserver/auth/domain/model/Token.kt → ...1nd/tokenserver/domain/auth/core/Token.kt
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
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/b1nd/tokenserver/domain/auth/core/exception/Exception.kt
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,19 @@ | ||
package b1nd.tokenserver.domain.auth.core.exception | ||
|
||
import b1nd.tokenserver.domain.common.core.BaseException | ||
|
||
object EmptyTokenException : BaseException( | ||
400, "토큰이 전송되지 않았습니다" | ||
) | ||
|
||
object InvalidTokenException : BaseException( | ||
401, "위조된 토큰입니다" | ||
) | ||
|
||
object WrongTokenTypeException : BaseException( | ||
401, "잘못된 토큰 타입입니다" | ||
) | ||
|
||
object ExpiredTokenException : BaseException( | ||
410, "만료된 토큰입니다" | ||
) |
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/b1nd/tokenserver/domain/auth/outport/TokenPort.kt
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,12 @@ | ||
package b1nd.tokenserver.domain.auth.outport | ||
|
||
import b1nd.tokenserver.domain.auth.core.JWTType | ||
import b1nd.tokenserver.domain.auth.core.Token | ||
|
||
interface TokenPort { | ||
|
||
fun issue(subject: String, role: Int, type: JWTType): String | ||
|
||
fun parse(token: String, type: JWTType): Token | ||
|
||
} |
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
2 changes: 1 addition & 1 deletion
2
.../auth/application/usecase/data/Request.kt → ...erver/domain/auth/usecase/data/Request.kt
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
2 changes: 1 addition & 1 deletion
2
...auth/application/usecase/data/Response.kt → ...rver/domain/auth/usecase/data/Response.kt
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
2 changes: 1 addition & 1 deletion
2
...r/global/exception/model/BaseException.kt → ...erver/domain/common/core/BaseException.kt
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
15 changes: 8 additions & 7 deletions
15
...tructure/adapter/driven/jwt/JWTAdapter.kt → ...tructure/adapter/driven/jwt/JWTAdapter.kt
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
2 changes: 1 addition & 1 deletion
2
...cture/adapter/driven/jwt/JWTProperties.kt → ...cture/adapter/driven/jwt/JWTProperties.kt
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: 4 additions & 4 deletions
8
...ure/adapter/driving/web/AuthController.kt → ...dapter/driving/web/auth/AuthController.kt
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
2 changes: 1 addition & 1 deletion
2
...obal/exception/model/BaseErrorResponse.kt → ...global/data/response/BaseErrorResponse.kt
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package b1nd.tokenserver.global.exception.model | ||
package b1nd.tokenserver.infrastructure.global.data.response | ||
|
||
data class BaseErrorResponse(val status: Int, val message: String) |
2 changes: 1 addition & 1 deletion
2
...rver/global/data/response/BaseResponse.kt → ...ture/global/data/response/BaseResponse.kt
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package b1nd.tokenserver.global.data.response | ||
package b1nd.tokenserver.infrastructure.global.data.response | ||
|
||
data class BaseResponse<T>(val status: Int, val message: String, val data: T) |
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