20.07.18 yesdoing
The OAuth 2.0 Authorization Framework
Roles
Protocol Flow
Client
Resource Owner
Authorization Server
Resource Server
1. Authorization Request
2. Authorization Grant
3. Authorization Grant
4. Access Token
5. Access Token
6. Protected Resource
등록으로 얻어야 하는 3가지 값
소셜 로그인 시도
소셜 로그인 링크 생성
https://accounts.google.com/o/oauth2/v2/auth?response_type=code &client_id=${process.env.GOOGLE_CLIENT_ID} &scope=openid%20profile%20email &redirect_uri=http%3A//localhost%3A4000/oauth/google/callback &state=${state}
로그인 and 권한 요청
Location: redirect_uri ?code=${authorization code}
Authorization Grant
Access Token
Json Web Token
Fetch API
By yesdoing
Frontend Developer