node.js 是否有节点 OAuth 服务器实现
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6822840/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a Node OAuth Server Implementation
提问by agate
I only found the oauth client library for nodejs. Does anybody know where I can find a server implementation?
我只找到了 nodejs 的 oauth 客户端库。有人知道我在哪里可以找到服务器实现吗?
Thanks,
Hao.
谢谢,
郝。
回答by Jared Hanson
I've just released OAuthorize, which is a suite of middleware for implementing an OAuth 1.0a server. It is highly modular, letting you tune it to meet your requirements. It integrates seamlessly with Passportfor authentication, using passport-http-oauthto protect APIs using access tokens.
我刚刚发布了OAuthorize,它是一套用于实现 OAuth 1.0a 服务器的中间件。它是高度模块化的,让您可以对其进行调整以满足您的要求。它与Passport无缝集成以进行身份验证,使用passport-http-oauth来保护使用访问令牌的API。
Update:OAuth2orizeis now available. It follows similar patterns, but implements support for OAuth 2.0.
更新:OAuth2orize现在可用。它遵循类似的模式,但实现了对 OAuth 2.0 的支持。
回答by Tauren
Pierre Ruyssen has a few OAuth2 projects. I've never used them nor do I know how far along they are, but you could check them out:
Pierre Ruyssen 有几个 OAuth2 项目。我从未使用过它们,也不知道它们有多远,但您可以查看它们:
回答by Alfred
Searching http://search.npmjs.orgI found https://github.com/selead/oauth-server, but it uses OAuth 1.0A protocoland last commit was at April 19, 2011. But then again I guess you should just have look and it might just fit your needs.
搜索http://search.npmjs.org我找到了https://github.com/selead/oauth-server,但它使用OAuth 1.0A 协议,最后一次提交是在 2011 年 4 月 19 日。但话又说回来,我想你应该看看,它可能正好适合你的需要。
回答by KimKha
I found another one: https://github.com/ammmir/node-oauth2-provider. It use Connect and ExpressJS.
我找到了另一个:https: //github.com/ammmir/node-oauth2-provider。它使用 Connect 和 ExpressJS。

