-
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
8 changed files
with
31 additions
and
31 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
10 changes: 10 additions & 0 deletions
10
src/main/java/org/hankki/hankkiserver/api/auth/service/OAuthProvider.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,10 @@ | ||
package org.hankki.hankkiserver.api.auth.service; | ||
|
||
import org.hankki.hankkiserver.external.openfeign.oauth.SocialInfoResponse; | ||
|
||
public interface OAuthProvider { | ||
|
||
SocialInfoResponse getUserInfo(String token, String name); | ||
|
||
void requestRevoke(String code, String Id); | ||
} |
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: 0 additions & 8 deletions
8
src/main/java/org/hankki/hankkiserver/external/openfeign/oauth/OAuthProvider.java
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...ternal/openfeign/oauth/SocialInfoDto.java → ...l/openfeign/oauth/SocialInfoResponse.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,16 +1,16 @@ | ||
package org.hankki.hankkiserver.external.openfeign.oauth; | ||
|
||
public record SocialInfoDto( | ||
public record SocialInfoResponse( | ||
String serialId, | ||
String name, | ||
String email) | ||
{ | ||
private static final String DEFAULT_NAME = "한끼"; | ||
|
||
public static SocialInfoDto of(final String serialId, String name, final String email) { | ||
public static SocialInfoResponse of(final String serialId, String name, final String email) { | ||
if (name.isBlank()) { | ||
name = DEFAULT_NAME; | ||
} | ||
return new SocialInfoDto(serialId, name, email); | ||
return new SocialInfoResponse(serialId, name, email); | ||
} | ||
} |
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