Skip to content

Commit

Permalink
✨: OauthStrategy에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Leehunil committed Apr 28, 2024
1 parent 863c139 commit 20fe7ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class GoogleOauthStrategy implements OauthStrategy{
"/o/oauth2/v2/auth?response_type=code&client_id=%s&scope=%s&redirect_uri=%s";
private static final String scope = "https://www.googleapis.com/auth/userinfo.email";

@Override
public String getOauthLink() {
return oauthProperties.getGoogleBaseUrl()
+ String.format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class KaKaoOauthStrategy implements OauthStrategy{
private static final String ISSUER = "https://kauth.kakao.com";
private static final String QUERY_STRING = "/oauth/authorize?client_id=%s&redirect_uri=%s&response_type=code";

@Override
public String getOauthLink() {
return oauthProperties.getKakaoBaseUrl()
+ String.format(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package ohsoontaxi.backend.domain.credential.service;

import ohsoontaxi.backend.domain.credential.presentation.dto.response.OauthTokenInfoDto;

import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;

public interface OauthStrategy {
String getOauthLink();

OIDCDecodePayload getOIDCDecodePayload(String token) throws NoSuchAlgorithmException, InvalidKeySpecException;
}

0 comments on commit 20fe7ea

Please sign in to comment.