Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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.

What are the main differences between the two libraries, and what use cases would prefer one library over the other?

like image 984
jedd.ahyoung Avatar asked Oct 16 '14 22:10

jedd.ahyoung


People also ask

What is passport JS used for?

Passport is a popular, modular authentication middleware for Node. js applications. With it, authentication can be easily integrated into any Node- and Express-based app. The Passport library provides more than 500 authentication mechanisms, including OAuth, JWT, and simple username and password based authentication.

What is Hello JS?

Hello. js is a client-side JavaScript SDK for authenticating with OAuth2 (and OAuth1 with a oauth proxy) web services and querying their REST APIs.

What is a passport strategy?

Passport's local strategy is a Node. js module that allows you to implement a username/password authentication mechanism. You'll need to install it like any other module and configure it to use your User Mongoose model.


2 Answers

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. 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.

like image 191
Drew Avatar answered Sep 18 '22 15:09

Drew


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......

Because javascript is everywhere :)

like image 31
Jain Avatar answered Sep 21 '22 15:09

Jain