Skip to content

Commit

Permalink
[fix] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunghyun1356 committed Jul 20, 2024
1 parent 4bcdd0e commit 1d7b0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/Lubee/Lubee/common/oauth/OauthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public String getKakaoAccessToken(String code) {
BufferedWriter bw = new BufferedWriter((new OutputStreamWriter(conn.getOutputStream()))); // 전송하기 위한 것
StringBuilder sb = new StringBuilder();
sb.append("grant_type=authorization_code");
sb.append("&client_id=79873accc7ee090cdaef4388ae2d9106"); // 배포 하고 나서 설정
sb.append("&client_id=b1301202d6b495289d802fa31dc8bd7e"); // 배포 하고 나서 설정
sb.append("&redirect_uri=https://lubee.shop/api/users/kakao/simpleLogin"); // 이부분 나중에 변경해야함
sb.append("&client_secret=AYKKr2WWSmWqlLb7gfMPmpuvQZUDXC2G");
sb.append("&code=").append(code);
Expand Down Expand Up @@ -129,7 +129,7 @@ public KakaoUserInfoDto getKakaoUserInfo(String accessToken) {
URL url = new URL(reqURL);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();

conn.setRequestMethod("GET");
conn.setRequestMethod("POST");
conn.setDoOutput(true);
conn.setRequestProperty("Authorization", "Bearer " + accessToken); //전송할 header 작성, access_token전송
System.out.println("conn" + conn);
Expand Down

0 comments on commit 1d7b0c4

Please sign in to comment.