1. Register a New App
Result
2. 3. Try this url
4. Redirect
- 사용자가 Authorize 를 클릭하면 다음 주소로 Redirect
<http://localhost:3000/auth/callback?code=><실제 발급된 코드>
- (Frontend) 쿼리에서 code 값을 추출하여 backend 에 보내줌
- Reference
5. Access Token 획득
<https://api.intra.42.fr/oauth/token>
- 위의 URL로
POST
요청을 보내 42 Access Token 과 Refresh Token 을 획득
- 유효기간이 2초 정도로 매우 짧아서 tfa 인증이 완료되지 않은 사용자 인증용으로 부적합