欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Passport.js
来自开放百科 - 灰狐
(版本间的差异)
小 (Allen移动Passportjs页面至Passport.js) |
小 (→链接) |
||
(未显示1个用户的5个中间版本) | |||
第4行: | 第4行: | ||
$ npm install passport | $ npm install passport | ||
$ npm install passport-local | $ 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 // [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-github | ||
+ | $ npm install passport-linkedin | ||
+ | $ npm install passport-instagram | ||
+ | $ npm install passport-http | ||
+ | $ npm install passport-http-oauth | ||
+ | $ npm install passport-http-bearer | ||
==例子== | ==例子== | ||
第13行: | 第31行: | ||
http://127.0.0.1:3000/ | http://127.0.0.1:3000/ | ||
jack/secret | jack/secret | ||
+ | |||
+ | ==Strategies== | ||
+ | Passport.js 最大的特色是它的[http://passportjs.org/docs 策略模式]。 | ||
+ | |||
+ | |||
+ | ==MongoDB== | ||
==图集== | ==图集== | ||
第22行: | 第46行: | ||
[[category:identity]] | [[category:identity]] | ||
[[category:node.js]] | [[category:node.js]] | ||
+ | [[category:express]] |
2016年3月18日 (五) 07:18的最后版本
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
[编辑] Strategies
Passport.js 最大的特色是它的策略模式。
[编辑] MongoDB
[编辑] 图集
[编辑] 链接
分享您的观点