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(