Skip to content

Commit

Permalink
Fix: 카카오로그인 redirect url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
s2hoon committed Jan 10, 2024
1 parent 4450520 commit c88ce64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/umc/StudyFlexBE/service/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -117,7 +118,7 @@ public KaKaoOAuthToken getKakaoToken(String code) {
MultiValueMap<String, String> 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<MultiValueMap<String, String>> kakaoTokenRequest = new HttpEntity<>(params, headers);
ResponseEntity<String> response = restTemplate.exchange(
Expand Down

0 comments on commit c88ce64

Please sign in to comment.