Skip to content

Commit

Permalink
release: 0.1.2 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored May 8, 2024
2 parents 7295972 + 25c95bf commit 510aaf5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/api/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,15 @@
```http
https://www.naver.com?jwt={jwtToken}
```

## Sequence

1. `GET https://api.gitanimals.org/logins/oauth/github` 로 요청.

2. 깃허브 로그인 페이지로 리다이렉트

3. 로그인 성공하면, 등록한 url 로 임시토큰 전달.

4. 임시토큰을 서버의 `GET https://api.gitanimals.org/logins/oauth/github/tokens?code={3번에서 받은 임시토큰}` 전달

5. 서버에 등록한 url로 임시토큰 응답.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Oauth2Controller(
return ResponseEntity.status(HttpStatus.TEMPORARY_REDIRECT)
.header(
"Location",
"http://localhost:5500/html/Login.html?token=$token"
"https://localhost:3000/jwt?jwt=$token"
)
.build()
}
Expand Down

0 comments on commit 510aaf5

Please sign in to comment.