简体   繁体   English

node.js:如何使用koa护照

[英]node.js: How to use passport with koa

Passport's website claims Passport的网站声称

Passport can be unobtrusively dropped in to any Express-based web application. Passport可以不受干扰地放入任何基于Express的Web应用程序中。

Can I use it with Koa as well? 我也可以和Koa一起使用吗? If so, what would be a good starting point to learn how to do so? 如果是这样,那么学习如何做到这一点的好起点是什么? I am thinking about a classic username/password strategy using sessions (maybe with Redis). 我正在考虑使用会话的经典用户名/密码策略(可能与Redis)。

Please excuse this stupid question, I'm just getting started with Node and there are too many things to learn at once and my head is spinning. 请原谅这个愚蠢的问题,我刚刚开始使用Node,并且有很多东西要一次学习,而我的脑袋正在旋转。

have you tried this ? 你试过这个吗?

koa-passport KOA护照

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM