본문 바로가기
카테고리 없음

카카오 로그인

by moonstal 2022. 3. 2.

카카오 api 앱키 : 26cebd469089394352fec3

웹서버 : http://localhost:8000
Redirect URI : http://localhost:8000/auth/kakao/callback

로그인 요청 주소 get
https://kauth.kakao.com/oauth/authorize?client_id=26cebd469089394352fec396e&redirect_uri=http://localhost:8000/auth/kakao/callback&response_type=code HTTP/1.1

토큰 발급 요청 주소 post
https://kauth.kakao.com/oauth/token
Content-type: application/x-www-form-urlencoded;charset=utf-8
grant_type=authorization_code
client_id=26cebd469089394352f
redirect_uri= http://localhost:8000/auth/kakao/callback
code={동적임}

토큰을 통한 사용자 정보 조회(post)
요청주소: https://kapi.kakao.com/v2/user/me
헤더 값:
Authorization: Bearer ${ACCESS_TOKEN}
Content-type: application/x-www-form-urlencoded;charset=utf-8