-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
5d94c09
commit 148b927
Showing
50 changed files
with
176 additions
and
675 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
36 changes: 36 additions & 0 deletions
36
app/api/common-api/src/main/java/org/example/security/dto/AuthenticatedInfo.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,36 @@ | ||
package org.example.security.dto; | ||
|
||
import java.util.UUID; | ||
import lombok.Builder; | ||
import org.example.vo.UserRoleApiType; | ||
|
||
@Builder | ||
public record AuthenticatedInfo( | ||
String accessToken, | ||
String refreshToken, | ||
UUID userId, | ||
UserRoleApiType role | ||
) { | ||
|
||
public static AuthenticatedInfo getUserWithAccessToken( | ||
UserParam userParam, | ||
String accessToken | ||
) { | ||
return AuthenticatedInfo.builder() | ||
.userId(userParam.userId()) | ||
.role(userParam.role()) | ||
.accessToken(accessToken) | ||
.build(); | ||
} | ||
|
||
public static AuthenticatedInfo getUserWithRefreshToken( | ||
UserParam userParam, | ||
String refreshToken | ||
) { | ||
return AuthenticatedInfo.builder() | ||
.refreshToken(refreshToken) | ||
.userId(userParam.userId()) | ||
.role(userParam.role()) | ||
.build(); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
app/api/common-api/src/main/java/org/example/security/dto/AuthenticatedUser.java
This file was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
app/api/common-api/src/main/java/org/example/util/ValidatorUser.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
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
29 changes: 0 additions & 29 deletions
29
...api/src/main/java/com/example/artist/controller/dto/response/ArtistSearchApiResponse.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...api/src/main/java/com/example/artist/controller/dto/response/ArtistSimpleApiResponse.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.