简体   繁体   English

Hello.js vs Passport.js?

[英]Hello.js vs Passport.js?

I've been wondering about this for a little bit and I've done a bit of searching, but found nothing (except for this , which is different). 我一直想知道这一点,我已经做了一些搜索,但没有找到任何东西(除了这个 ,这是不同的)。 I'm attempting to clarify the differences between Hello.js and Passport.js , and figure out what the use cases are for both. 我试图澄清Hello.jsPassport.js之间的区别,并找出两者的用例。

On the surface, aside from one being client-side and one being node middleware, they seem to deliever similar functionality, and they are both modular. 从表面上看,除了一个是客户端和一个节点中间件之外,它们似乎提供类似的功能,并且它们都是模块化的。

I've done a bit of poking around with Passport, but haven't tried Hello.js yet. 我已经用Passport做了一些事情,但还没有尝试过Hello.js。

What are the main differences between the two libraries, and what use cases would prefer one library over the other? 这两个库之间的主要区别是什么,哪些用例更喜欢一个库而不是另一个库?

Hellojs is an alternative to thirdparty SDK's like https://developers.facebook.com/docs/javascript for example, as such its suited to the development of rich client side apps which perform various requests to a thirdparty's api on behalf of the user. Hellojs是第三方SDK的替代品,例如https://developers.facebook.com/docs/javascript ,因此它适合开发富客户端应用程序,代表用户对第三方的api执行各种请求。 Passport.js is designed around federated authentication, identifying a users session through a thirdparty - stackoverflow is a perfect example as it lets me sign in with my google account. Passport.js是围绕联合身份验证设计的,通过第三方识别用户会话 - stackoverflow是一个很好的例子,因为它允许我使用我的谷歌帐户登录。

Exactly, hello js is client side sdk, for most common social websites, and this is its power you can integrate hello with any website either it built in php, .net, node, java, python, etc...... 确切地说,hello js是客户端的sdk,对于大多数常见的社交网站来说,这是它的强大功能,你可以将它与你在php,.net,node,java,python等中构建的任何网站集成。

Because javascript is everywhere :) 因为javascript无处不在:)

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

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