-
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.
Merge pull request #56 from ttoklip/54-fix-web-로그인-방식-sdk-로그인-방식-활용
54 fix web 로그인 방식 sdk 로그인 방식 활용
- Loading branch information
Showing
8 changed files
with
98 additions
and
47 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/main/java/com/api/ttoklip/domain/privacy/constant/PrivacyConstant.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,38 @@ | ||
package com.api.ttoklip.domain.privacy.constant; | ||
|
||
public class PrivacyConstant { | ||
public static final String PROFILE_RESPONSE = """ | ||
{ | ||
"time": "2024-02-13T04:20:45.021367", | ||
"status": 200, | ||
"code": "200", | ||
"message": "요청에 성공하였습니다.", | ||
"result": { | ||
"message": "회원가입 후 개인정보를 추가했습니다." | ||
} | ||
} | ||
"""; | ||
public static final String VALIDATE_NICKNAME = """ | ||
{ | ||
"time": "2024-02-13T04:20:31.659223", | ||
"status": 200, | ||
"code": "200", | ||
"message": "요청에 성공하였습니다.", | ||
"result": { | ||
"message": "닉네임 중복 확인에 통과하였습니다." | ||
} | ||
} | ||
"""; | ||
public static final String LOGIN_SUCCESS = """ | ||
{ | ||
"time": "2024-02-13T04:19:22.753484", | ||
"status": 200, | ||
"code": "200", | ||
"message": "요청에 성공하였습니다.", | ||
"result": { | ||
"jwtToken": "eyJhbGciiJ9.eyJzdWIiY29tIiwiaWF0IjoxNzA3NzY1NTYyLCJleHAiOjjY0NjJ9.UyT8aH-Wjc2Qx7xBWA", | ||
"ifFirstLogin": true | ||
} | ||
} | ||
"""; | ||
} |
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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/api/ttoklip/global/security/auth/dto/LoginRequest.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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
package com.api.ttoklip.global.security.auth.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class LoginRequest { | ||
|
||
@Schema(type = "string", description = "oauth accessToken", example = "AAAAux5O0y30x7G1twup/hPQIdsu/B3i3WL490lghVyU=") | ||
private String accessToken; | ||
|
||
@Schema(type = "string", description = "provider", example = "kakao or naver") | ||
private String provider; | ||
} |
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