File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
java/sevenstar/marineleisure/member/service Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1818import com .github .benmanes .caffeine .cache .Cache ;
1919import com .github .benmanes .caffeine .cache .Caffeine ;
2020
21- import ch .qos .logback .core .joran .action .ParamAction ;
2221import jakarta .servlet .http .HttpServletRequest ;
2322import jakarta .transaction .Transactional ;
2423import lombok .RequiredArgsConstructor ;
@@ -45,6 +44,9 @@ public class OauthService {
4544 @ Value ("${kakao.login.client_secret}" )
4645 private String clientSecret ;
4746
47+ @ Value ("${kakao.login.admin_key}" )
48+ private String adminKey ;
49+
4850 @ Value ("${kakao.login.uri.base}" )
4951 private String kakaoBaseUri ;
5052
@@ -234,7 +236,7 @@ public Long unlinkKakaoAccount(String providerId) {
234236
235237 Map <String , Object > response = webClient .post ()
236238 .uri (unlinkUrl )
237- .header ("Authorization" , "KakaoAK " + clientSecret )
239+ .header ("Authorization" , "KakaoAK " + adminKey )
238240 .header ("Content-Type" , "application/x-www-form-urlencoded;charset=utf-8" )
239241 .body (BodyInserters .fromFormData (params ))
240242 .retrieve ()
Original file line number Diff line number Diff line change 6161 login :
6262 api_key : ${KAKAO_API_KEY}
6363 client_secret : ${KAKAO_CLIENT_SECRET}
64+ admin_key : ${KAKAO_ADMIN_KEY}
6465 redirect_uri : ${KAKAO_REDIRECT_URI}
6566
6667 uri :
You can’t perform that action at this time.
0 commit comments