네이버, 카카오 로그인 API 기능 구현 내용을 정리한다.
로그인 동의 화면을 호출하는 과정 이후의 작업에 대해 정리한다.
네이버, 카카오 로그인 동의 화면에서 사용자가 액션을 하는 경우 아래와 같은 데이터가 응답된다.
code
state
error
error_description
기본 정보
GET/POST
https://nid.naver.com/oauth2.0/token arrow-up-right
본문
grant_type
authorization_code refresh_token delete
required
client_id
앱 ID
client_secret
앱 Secret
응답
token_type
Bearer와 MAC
access_token
접근 토큰
refresh_token
갱신 토큰
expires_in
유효 기간
POST
https://kauth.kakao.com/oauth/token arrow-up-right
헤더
Content-type
Content-type: application/x-www-form-urlencoded;charset=utf-8
authorization_code
내 애플리케이션 Key
내 애플리케이션 Secret
인가 코드
redirect_uri
리다이렉트된 URI
bearer로 고정
액세스 토큰
id_token
액세스 토큰 만료시간
리프레스 토큰
refresh_token_expires_in
리프레스 만료시간
scope
Last updated 1 year ago