-
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
11 changed files
with
162 additions
and
169 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
src/main/java/com/zerozero/auth/infrastructure/oauth/OAuthRestClient.java
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/main/java/com/zerozero/auth/infrastructure/oauth/OAuthRestClientFactory.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/main/java/com/zerozero/auth/infrastructure/oauth/common/OAuthAccessTokenResponse.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/com/zerozero/auth/infrastructure/oauth/common/OAuthResourceResponse.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/main/java/com/zerozero/auth/infrastructure/oauth/common/Provider.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
src/main/java/com/zerozero/auth/infrastructure/oauth/core/OAuthAccessTokenResponse.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,18 @@ | ||
package com.zerozero.auth.infrastructure.oauth.core; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public record OAuthAccessTokenResponse( | ||
@JsonProperty("access_token") | ||
String accessToken, | ||
|
||
@JsonProperty("expires_in") | ||
long expiresIn, | ||
|
||
@JsonProperty("refresh_token") | ||
String refreshToken, | ||
|
||
@JsonProperty("token_type") | ||
String tokenType | ||
) { | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/zerozero/auth/infrastructure/oauth/core/OAuthResourceResponse.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,15 @@ | ||
package com.zerozero.auth.infrastructure.oauth.core; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record OAuthResourceResponse( | ||
String id, | ||
|
||
String email, | ||
|
||
@JsonProperty("verified_email") | ||
boolean verifiedEmail | ||
) { | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/com/zerozero/auth/infrastructure/oauth/core/Provider.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,5 @@ | ||
package com.zerozero.auth.infrastructure.oauth.core; | ||
|
||
public enum Provider { | ||
KAKAO | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/zerozero/auth/infrastructure/oauth/kakao/KakaoOAuthProperty.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,29 @@ | ||
package com.zerozero.auth.infrastructure.oauth.kakao; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Set; | ||
|
||
@Component | ||
@Getter | ||
@Setter | ||
@ConfigurationProperties("oauth.kakao") | ||
public class KakaoOAuthProperty { | ||
|
||
protected String clientId; | ||
|
||
protected String clientSecret; | ||
|
||
protected String redirectUri; | ||
|
||
protected Set<String> scope; | ||
|
||
protected String tokenUri; | ||
|
||
protected String resourceUri; | ||
|
||
protected String authUri; | ||
} |
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