Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 자동
- 생활코딩
- lowdb
- local
- tPerRow hn측
- 데이터
- sanitize
- nodejs
- app.js
- express
- 설치
- 실행
- math
- Web
- /bin/www
- passport
- dr 학교측
- 객체정의
- nodemon
- Web2
- 모듈
- node.js
- round
- Generator
- 객체
- 함수
- 객체란
- template
- Passport.js
- JavaScript
Archives
- Today
- Total
괜찮아 잘하고있어 힘내
2. passport 설치 본문
Passport.js
Simple, unobtrusive authentication for Node.js
www.passportjs.org
Documentation에는 사용 설명이 있다.
Strategies 에는 여러가지 전략이 있고 이중 선택해서 로그인 방법을 확장해 나갈 수 있다.
npm install -s passport
을 사용해 passport를 설치해준다.
로컬 방식으로 로그인 하는 전략을 사용할 것이다.
npm install -s passport-local
을 설치해준다.
그리고 저 코드의 내용을 main.js에 세션을 활성화 시키는 코드 밑에 넣어준다.
반드시 passport는 세션을 내부적으로 사용하기 때문에 express세션을 활성화 시키는 코드다음에 passport가 등장해야한다.
'웹 개발 > Passport' 카테고리의 다른 글
5.2. passport 세션이용 2 (0) | 2021.03.24 |
---|---|
5.1. passport 세션이용 1 (0) | 2021.03.24 |
4.2. passport 자격확인2 (0) | 2021.03.22 |
4.1. passport 자격확인1 (0) | 2021.03.22 |
3. passport 인증구현 (0) | 2021.03.22 |
Comments