Skip to content

Commit

Permalink
[Feat]: 네이버 로그인 설정 누락 추가 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
bayy1216 committed May 31, 2024
1 parent 9ddedb2 commit 67becaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public NaverOAuth2Client(AuthTokenGenerator authTokenGenerator, ClientHttpReques
private static final String GRANT_TYPE = "authorization_code";
@Value("${naver.client-id}")
private String clientId;
@Value("${naver.redirect-uri}")
private String redirectUri;
@Value("${naver.client-secret}")
private String clientSecret;

Expand All @@ -52,7 +50,6 @@ public OAuthUserInfoModel getAuthToken(String code, String state) {
MultiValueMap<String, String> body = new LinkedMultiValueMap<>();
body.add("grant_type", GRANT_TYPE);
body.add("client_id", clientId);
body.add("redirect_uri", redirectUri);
body.add("code", code);
body.add("client_secret", clientSecret);
body.add("state", state);
Expand Down
4 changes: 3 additions & 1 deletion zzansuni-api-server/app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ kakao:
client-id: ${KAKAO_CLIENT_ID}
client-secret: ${KAKAO_CLIENT_SECRET}
redirect-uri: ${KAKAO_REDIRECT_URI}

naver:
client-id: ${NAVER_CLIENT_ID}
client-secret: ${NAVER_CLIENT_SECRET}
---
spring: # dev profile
config:
Expand Down

0 comments on commit 67becaa

Please sign in to comment.