Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

안드로이드 카카오 소셜로그인 redirect 작동 안함 #10

Description

@binarybamboo

에러 내용

Client에서 -> Server로 redirect를 두고 code를 반환시켜줘야 하는데, code를 반환 시켜주는 redirect로 callback이 안됨.

기존 예상 서버 구조

kakao docs

  1. redirect로 code를 받고 {REDIRECT_URI}?code={AUTHORIZE_CODE}
  2. client_id, code,redirect,grant_type을 통해 인가 토큰을 받는다. POST /oauth/token HTTP/1.1
  3. 토큰을 통해 카카오톡 계정 정보를 가져온다.(카카오톡 email만 받으면 신뢰성이 없으므로 서버에서 kakao access token을 받고, access token을 통해 신뢰성 있는 계정 정보를 가져온다.) GET "https://kapi.kakao.com/v2/user/me"
    -H "Authorization: Bearer {ACCESS_TOKEN}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions