node.js 的用户身份验证库? [英] user authentication libraries for node.js?

查看:41
本文介绍了node.js 的用户身份验证库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

node.js 是否有任何现有的用户身份验证库?特别是我正在寻找可以为用户进行密码身份验证(使用自定义后端身份验证数据库)并将该用户与会话相关联的东西.

Are there any existing user authentication libraries for node.js? In particular I'm looking for something that can do password authentication for a user (using a custom backend auth DB), and associate that user with a session.

在我写一个 auth 库之前,我想我会看看人们是否知道现有的库.通过谷歌搜索找不到任何明显的东西.

Before I wrote an auth library, I figured I would see if folks knew of existing libraries. Couldn't find anything obvious via a google search.

-Shreyas

推荐答案

看起来像 connect-连接中间件的 auth 插件正是我所需要的

Looks like the connect-auth plugin to the connect middleware is exactly what I need

我正在使用 express [ http://expressjs.com ],因此连接插件非常适合,因为 express 是从 connect 子类化的(ok - 原型)

I'm using express [ http://expressjs.com ] so the connect plugin fits in very nicely since express is subclassed (ok - prototyped) from connect

这篇关于node.js 的用户身份验证库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆