Skip to content

Commit

Permalink
Merge pull request #36 from Likelion12/4-be-회원가입
Browse files Browse the repository at this point in the history
fix : Loginservice 에 리다이렉트주소 오류 발견 후 수정
  • Loading branch information
jsilver01 authored Jul 31, 2024
2 parents 0d1d76e + e311681 commit 982fb4e
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 2 deletions.
Binary file modified .gradle/8.9/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.9/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.9/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.9/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/8.9/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class LoginService {

@Value("${spring.security.oauth2.client.registration.kakao.client-id}")
private String clientId;
@Value("${spring.security.oauth2.client.registration.kakao.redirect-uri}")
private String redirectUri;

private final MemberRepository memberRepository;
private final JwtProvider jwtProvider;
Expand Down Expand Up @@ -67,7 +69,7 @@ private String getAccessToken(String code){
UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl("https://kauth.kakao.com/oauth/token")
.queryParam("grant_type", "authorization_code")
.queryParam("client_id", clientId)
.queryParam("redirect_uri", "http://localhost:8080/auth/kakao/callback")
.queryParam("redirect_uri", redirectUri)
.queryParam("code", code);

HttpHeaders headers = new HttpHeaders();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spring:
registration:
kakao:
client-id: ${CLIENT_ID}
redirect-uri: http://43.202.94.241:8080/auth/kakao/callback
redirect-uri: "http://43.202.94.241:8080/auth/kakao/callback"
---
jwt:
secret: ${JWT_SECRET}
Expand Down

0 comments on commit 982fb4e

Please sign in to comment.