Skip to content

Commit

Permalink
[FEATURE] 애플 로그인 code 관련 수정 (#136)
Browse files Browse the repository at this point in the history
* feat : 애플 로그인 code redirect uri에 붙어서 오도록 수정 #135

* feat : 애플로 로그인 후 회원가입 PostMapping으로 변경 #135
  • Loading branch information
bongsh0112 authored Dec 18, 2023
1 parent 27cd696 commit a9ccb93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public OauthTokenResponse getAppleCredentialInfo(
}

@Operation(summary = "apple에서 발급한 idToken, refreshToken 이용하여 회원가입")
@GetMapping("/oauth/apple/register")
@PostMapping("/oauth/apple/register")
public AuthResponse registerUserByApple(
@RequestParam("id_token") String idToken,
@RequestParam("refresh_token") String refreshToken,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String getAppleOauthLink(String referer) {
+ oauthProperties.getAppleClientUrl()
+ "&redirect_uri="
+ oauthProperties.getAppleRedirectUrl()
+ "&response_type=code%20id_token&scope=name%20email&response_mode=form_post";
+ "&response_type=code&response_mode=query";
}

public AppleTokenResponse getOauthToken(String code)
Expand Down

0 comments on commit a9ccb93

Please sign in to comment.