Passport.js

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(指南)
(指南)
第7行: 第7行:
 
  $ npm install passport-oauth
 
  $ npm install passport-oauth
 
  $ npm install passport-google
 
  $ npm install passport-google
 +
$ npm install passport-google-plus
 
  $ npm install passport-facebook
 
  $ npm install passport-facebook
 
  $ npm install passport-twitter
 
  $ npm install passport-twitter
 +
$ npm install passport-wechat // [https://github.com/liangyali/passport-wechat 微信]
 +
$ npm install passport-tqq // [https://github.com/heroicyang/passport-tqq 腾讯QQ]
 +
$ npm install passport-sina // [https://github.com/kfll/passport-sina 新浪微博]
 +
$ npm install passport-weibo // [https://github.com/xinbenlv/passport-weibo 新浪微博]
 +
$ npm install passport-reddit
 
  $ npm install passport-amazon
 
  $ npm install passport-amazon
 
  $ npm install passport-github
 
  $ npm install passport-github

2016年3月10日 (四) 10:22的版本

Passportjs 是一个面向 Node.js 的开源(MIT)身份认证系统。

目录

指南

$ npm install passport
$ npm install passport-local
$ npm install passport-openid
$ npm install passport-oauth
$ npm install passport-google
$ npm install passport-google-plus
$ npm install passport-facebook
$ npm install passport-twitter
$ npm install passport-wechat // 微信
$ npm install passport-tqq // 腾讯QQ
$ npm install passport-sina // 新浪微博
$ npm install passport-weibo // 新浪微博
$ npm install passport-reddit
$ npm install passport-amazon
$ npm install passport-github
$ npm install passport-linkedin
$ npm install passport-instagram
$ npm install passport-http
$ npm install passport-http-oauth
$ npm install passport-http-bearer

例子

$ git clone https://github.com/passport/express-4.x-local-example
$ cd express-4.x-local-example
$ npm install
$ node server.js
http://127.0.0.1:3000/
jack/secret

MongoDB

图集

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱