Skip to content

Commit

Permalink
Merge pull request #114 from YogitTeam/feat/user-profile
Browse files Browse the repository at this point in the history
#5 Fix : 유저 Apple 탈퇴 - verifyIdentityToken 생략
  • Loading branch information
shinhn authored Jan 5, 2023
2 parents ef6a8e2 + 0221686 commit 15fd6a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.yogit.server.applelogin.model.*;
import com.yogit.server.applelogin.service.AppleService;
import com.yogit.server.global.dto.ApplicationResponse;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -26,6 +27,7 @@ public class AppleController {
* privateKey 로 사용자 개인 정보와 refreshToken 발급받기
* @return
*/
@ApiOperation(value = "회원가입")
@PostMapping(value = "/sign-up/apple")
@ResponseBody
public ApplicationResponse<TokenResponse> signUpApple(@RequestBody ServicesResponse servicesResponse) throws NoSuchAlgorithmException {
Expand All @@ -43,6 +45,7 @@ public ApplicationResponse<TokenResponse> signUpApple(@RequestBody ServicesRespo
*
* @return
*/
@ApiOperation(value = "로그인")
@PostMapping(value = "/log-in/apple")
@ResponseBody
public ApplicationResponse<TokenResponse> logInApple(@RequestBody AppleLoginReq appleLoginReq) throws NoSuchAlgorithmException {
Expand All @@ -60,6 +63,7 @@ public ApplicationResponse<TokenResponse> logInApple(@RequestBody AppleLoginReq
*
* @return
*/
@ApiOperation(value = "회원탈퇴")
@PostMapping(value = "/delete/apple")
@ResponseBody
public ApplicationResponse<String> logInApple(@RequestBody DeleteUserReq deleteUserReq) throws NoSuchAlgorithmException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void deleteUser(DeleteUserReq deleteUserReq) throws NoSuchAlgorithmExcept

LinkedMultiValueMap<String, String> params = new LinkedMultiValueMap<>();
params.add("client_id", client_id);
params.add("client_secret", getAppleClientSecret(deleteUserReq.getIdentityToken()));
params.add("client_secret", appleUtils.createClientSecret());
params.add("token", deleteUserReq.getRefreshToken());

HttpHeaders headers = new HttpHeaders();
Expand Down

0 comments on commit 15fd6a7

Please sign in to comment.