From c88ce64263db3bc2459846f1a2d233014dd95ee3 Mon Sep 17 00:00:00 2001 From: suhoon Date: Wed, 10 Jan 2024 21:47:39 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20redirect=20url=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/umc/StudyFlexBE/service/MemberService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/umc/StudyFlexBE/service/MemberService.java b/src/main/java/com/umc/StudyFlexBE/service/MemberService.java index e236cec..36610ed 100644 --- a/src/main/java/com/umc/StudyFlexBE/service/MemberService.java +++ b/src/main/java/com/umc/StudyFlexBE/service/MemberService.java @@ -73,6 +73,7 @@ public void signUp(SignUpDto signUpDto) { public void signUpOAUth(SignUpOAuthDto signUpOAuthDto) { Member member = new Member(); member.setMember_type(general); + member.setRole(ROLE_USER); member.setEmail(signUpOAuthDto.getEmail()); member.setName(signUpOAuthDto.getName()); member.setPassword(passwordEncoder.encode("12345")); @@ -117,7 +118,7 @@ public KaKaoOAuthToken getKakaoToken(String code) { MultiValueMap params = new LinkedMultiValueMap<>(); params.add("grant_type", "authorization_code"); params.add("client_id", "a6e75ba812b0214d4f01fdaec0af6ac1"); - params.add("redirect_uri", "http://localhost:8080/app/member/kakao/callback"); + params.add("redirect_uri", "http://43.202.229.53:8080/app/member/kakao/callback"); params.add("code", code); HttpEntity> kakaoTokenRequest = new HttpEntity<>(params, headers); ResponseEntity response = restTemplate.exchange(