https://developers.kakao.com/docs/latest/ko/kakaologin/rest-api
인가(Authentication) → 인증 코드 받기 → 적절한 Endpoint 선택 → 파라미터에 값 넣고 Request → Response 받기
STEP 1. 인가
Request
curl -v -X POST "<https://kauth.kakao.com/oauth/token>" \\
-H "Content-Type: application/x-www-form-urlencoded;charset=utf-8" \\
-d "grant_type=authorization_code" \\
-d "client_id=${REST_API_KEY}" \\
--data-urlencode "redirect_uri=${REDIRECT_URI}" \\
-d "code=${AUTHORIZE_CODE}"
Response
HTTP/1.1 200
{
"token_type": "bearer",
"access_token": "${ACCESS_TOKEN}",
"id_token": "${ID_TOKEN}",
"expires_in": 7199,
"refresh_token": "${REFRESH_TOKEN}",
"refresh_token_expires_in": 86399,
"scope": "profile_image openid profile_nickname"
}
https://laburity.com/api-penetration-testing-101-a-beginners-guide-to-securing-apis/