localhost환경에서 이용하다가 도메인을 사서 연결했는데 코드랑 홈페이지 redirect uri를 모두 바꿨음에도 계속 400에러가 나서 log를 보니 이전 코드인 localhost로 됩니다… ㅠㅠ…왜일까요…
app id : 1022371
LoginService
if ("kakao".equals(gate)) {
redirectURI = URLEncoder.encode("https://www.hjsocial.com/social/klogin", "UTF-8");
apiURL = "https://kauth.kakao.com/oauth/token?grant_type=authorization_code";
apiURL += "&client_id=0091e3579906d8421181b9f2d8d7657e";
apiURL += "&redirect_uri=https://www.hjsocial.com/social/klogin";
apiURL += "&client_secret=4HnX7dcLmeCLUddzAWlVKwcQu3jRYB3x";
apiURL += "&code=" + code;
}
log
[2024-03-10 17:08:41] [info] apiURL=https://kauth.kakao.com/oauth/token?grant_type=authorization_code&client_id=0091e3579906d8421181b9f2d8d7657e&redirect_uri=http://localhost:8080/social/klogin&client_secret=4HnX7dcLmeCLUddzAWlVKwcQu3jRYB3x&code=hWmOtdLudZR3C_seJliMc9IJneSZFrPIc7-JtDZhMFYOzwlzPkgrQ2aNTDUKKiVOAAABjilWjJshI_W2iNNaeg