Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

로그인 콜백 명세서 #8

Open
jyb2605 opened this issue Jul 28, 2019 · 1 comment
Open

로그인 콜백 명세서 #8

jyb2605 opened this issue Jul 28, 2019 · 1 comment

Comments

@jyb2605
Copy link
Owner

jyb2605 commented Jul 28, 2019

로그인 콜백

Request

HTTP Method URI
GET /users/callback
  • Header
Name Value Description
content-type application/json
  • parameter
Name Value Description
grant_type authorization_code 요청 토큰 타입
code 4p1nxAANnaSi9K0da3 네아로 인증에 성공하면 반환받는 인증 코드
state djfnefdndndnddndl 사이트 간 요청 위조 공격을 방지하기 위해 애플리케이션에서 생성한 상태 토큰
  • example
http://http://101.101.160.246:3000/users/callback?code=4p1nxAANnaSi9K0da3&state=djfnefdndndnddndl


Response

Success

  • Status: 200
  • Header
Name Value Description
content-type application/json
  • Body
Name Value Description
code 200 response 코드번호
access_token AAAAN2du68lE5Kea2Ce2vcplGH3r/ytgrDsquexcenL/3Xw0ER7gKjjrpESIYDVx4//nVyzAvpg8IGfUa9l1tRP4aoU= access 토큰
refresh_token K5yNLOhdMZo6tNIexzQHwHNip6r9uS8mGWuisDr1bR53iivaipReT5SXXliiaQLhg884KQD5LNlS2tTXZNczZGVWzXdCxZfUisis3ipe1cSHrGzCuQipjviiHK30KbdgdisR7Q61hgj refresh 토큰
token_type bearer 토큰 방식
{
      "code":200,
      "token_type":"bearer",
      "access_token":"AAAAN2du68lE5Kea2Ce2vcplGH3r/ytgrDsquexcenL/3Xw0ER7gKjjrpESIYDVx4//nVyzAvpg8IGfUa9l1tRP4aoU=",
      "refresh_token":"K5yNLOhdMZo6tNIexzQHwHNip6r9uS8mGWuisDr1bR53iivaipReT5SXXliiaQLhg884KQD5LNlS2tTXZNczZGVWzXdCxZfUisis3ipe1cSHrGzCuQipjviiHK30KbdgdisR7Q61hgj"
}

Fail

Status Description

<Status>

FIXME: fill response data




relate to issue

FIXME: Describe relate to issue

@jyb2605 jyb2605 mentioned this issue Jul 29, 2019
3 tasks
@jyb2605
Copy link
Owner Author

jyb2605 commented Jul 31, 2019

웹뷰의 json 값을 네이티브 애플리케이션으로 전달하지 못하는 문제가 발생하여 해당 명세의 response를 포함한 script 를 반환함

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

No branches or pull requests

1 participant