
[nodeJS] 깃허브 로그인 구현하기
·
🧱 Framework/Node.js
OAuto2.0을 이용한 소셜 로그인의 과정은 대부분 위 사진과 같은 과정을 거친다고한다. express서버와 node.js를 이용해 git 사용자 인증을 얻어내보자! 1. 깃허브에 로그인 요청하기 1.1 client_id 생성하기 깃허브 홈페이지 -> settings -> Developer settings -> OAuth apps 앱 성성을 하면 자동적으로 client_id가 부여된다. client secrets는 나중에 사용되므로 발행 후 잘 저장해 두자. 1.2 사용자의 깃허브 아이디 요청하기 https://github.com/login/oauth/authorize + 클라이언트 아이디 형식은 다음과 같다 https://github.com/login/oauth/authorize?client_id=8..