Hi,
when calling get Token API I am getting 400 bad request , while debuging I am getting this log:
HttpResponseProxy{HTTP/1.1 400 Bad Request [Date: Thu, 29 Apr 2021 08:45:01 GMT, Content-Type: application/json;charset=utf-8, Transfer-Encoding: chunked, Connection: keep-alive, Pragma: no-cache, Cache-Control: no-store, X-XSS-Protection: 1; mode=block, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Access-Control-Allow-Origin: *, Access-Control-Allow-Methods: GET, POST, OPTIONS, Access-Control-Allow-Headers: Authorization, KA, Origin, X-Requested-With, Content-Type, Accept] ResponseEntityProxy{[Content-Type: application/json;charset=utf-8,Chunked: true]}}
this is the URL I am caling https://kauth.kakao.com/oauth/token
This is my request details :
<{grant_type=[authorization_code], code=[tSmSV8-9EtRpkJc-4Ton-GMGNyQImxqJ3lhpV_-pWpx5T2qnTzNyE_JwXrzkQu_xHF9uOQorDNIAAAF5HMgSvw], redirect_uri=[https://int-www2.hm.com/ko_kr/kakao/authorize], client_id=[XXXXXXXXXXX], client_secret=[XXXXXXXXXXXXX]},[]>
tim.l
#4
hi~
Let me know the login url.
tim.l
#6
What I want is your site’s login url page address
it is only in our integration env . and can not reproduce it in local .
https://int-www2.hm.com/ko_kr/kakao/authorize
tim.l
#8
{"error":"invalid_grant","error_description":"Redirect URI mismatch.","error_code":"KOE303"}
Looking at the log, the above error was found.
The same redirect URI must be used to pass “auth” and “token” requests.
tim.l
#10
April 29th 2021, 18:27:18.167 /oauth/token 200
{"access_token":"8vWw0YYLhJDr2eDRUdIsSCPuH6AexwxFarxhlwopb7gAAAF5HPQ5jg","token_type":"bearer","refresh_token":"g8QXz4NYeEOvx5KBq1k6tfUjsliFMrWqc9DNWQopb7gAAAF5HPQ5jQ","expires_in":21599,"scope":"birthday account_email talk_message gender birthyear profile plusfriends phone_number","refresh_token_expires_in":5183999}
April 29th 2021, 18:27:17.105 /oauth/authorize 302
authorizationCode : qh6VHlwJOhWHcQ5OFMviFIEaZjUnT7qZ0XdqLzi_oa_EWZSpAixp7zZeIxf5LCrn_WtcQQopyWAAAAF5HPQ1bg
Responded normally.
I am still getting 400 with this autorization code : RboRwe9ADzjvybfcpTDJG2AIUa14C1UxRASLLkEi4psipFNlkikamCWbszgKql8VM3E9tgopcBQAAAF5HYfm-g
tim.l
#12
The token returned normally.