-
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.
Merge pull request #84 from hook-killer/feat/64-social-google
[FEATURE] 구글 로그인 구현 완료 #64
- Loading branch information
Showing
39 changed files
with
360 additions
and
306 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
38 changes: 38 additions & 0 deletions
38
src/main/java/HookKiller/server/auth/dto/GoogleUserInfoDto.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 HookKiller.server.auth.dto; | ||
|
||
import HookKiller.server.user.entity.OauthInfo; | ||
import HookKiller.server.user.entity.OauthProvider; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class GoogleUserInfoDto { | ||
|
||
private String sub; | ||
|
||
private String email; | ||
|
||
private String name; | ||
|
||
private String picture; | ||
|
||
private OauthProvider oauthProvider; | ||
|
||
@Builder | ||
public GoogleUserInfoDto(String sub, String email, String name, String picture, OauthProvider oauthProvider) { | ||
this.sub = sub; | ||
this.email = email; | ||
this.name = name; | ||
this.picture = picture; | ||
this.oauthProvider = oauthProvider; | ||
} | ||
|
||
public OauthInfo toOauthInfo() { | ||
return OauthInfo.builder() | ||
.provider(OauthProvider.GOOGLE) | ||
.oid(sub) | ||
.build(); | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
src/main/java/HookKiller/server/auth/dto/KakaoUserInfoDto.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
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
81 changes: 0 additions & 81 deletions
81
src/main/java/HookKiller/server/auth/helper/KakaoOauthHelper.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.