diff --git a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java index 4200df8..28d14a6 100644 --- a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java +++ b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java @@ -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; @@ -52,7 +50,6 @@ public OAuthUserInfoModel getAuthToken(String code, String state) { MultiValueMap 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); diff --git a/zzansuni-api-server/app/src/main/resources/application.yml b/zzansuni-api-server/app/src/main/resources/application.yml index 3798117..88d6fc7 100644 --- a/zzansuni-api-server/app/src/main/resources/application.yml +++ b/zzansuni-api-server/app/src/main/resources/application.yml @@ -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: