Live data from Hacker News

HelloJS – Client-side OAuth for JS

adodson.com

1–10 of 58 posts

Re: HelloJS – Client-side OAuth for JS

#3
HelloJS is great. I've used it in my last project. It just works. It's well tested, and well documented. There's very little option twiddling required. It just worked seemlessly when I was trying to setup Twitter, Google, LinkedIn and Facebook OAuth logins.

Re: HelloJS – Client-side OAuth for JS

#4
post #2

Thanks for sharing my project HelloJS

Hi... thanks for writing this. As a newb on these sorts of issues, I have some questions:

1. So this is 100% client side... Why do I see "npm" in the instructions? Isn't that connected to nodejs? What if I'm writing a java web server app, will this still work, or does it need to talk to a nodejs server somehow?

2. I take it none of this hits a third party server (i.e. your server)?

3. How do I get the user's info obtained via authentication (gmail address, etc) to my server, in a way that is secure, if this is all client & browser based?

Re: HelloJS – Client-side OAuth for JS

#5
post #4
post #2

Thanks for sharing my project HelloJS

Hi... thanks for writing this. As a newb on these sorts of issues, I have some questions: 1. So this is 100% client side... Why do I see "npm" in the instructions? Isn't that connected to nodejs? What if I'm writing a java web server app, will this still work, or does it need to talk to a nodejs server somehow? 2. I take it none of this hits a third party server (i.e. your server)? 3. How do I get the user's info obt…

Use node for bundling+minification.

Its on npm for convenience. I also hope to make it compatible with CommonJs and have components of it work through the server.

Not all services support server-less authentication otherwise known as Implicit OAuth2. As such, i've put a proxy service up on Heroku. Read up at http://adodson.com/hello.js/#oauth-proxy

Re: HelloJS – Client-side OAuth for JS

#6
post #4
post #2

Thanks for sharing my project HelloJS

Hi... thanks for writing this. As a newb on these sorts of issues, I have some questions: 1. So this is 100% client side... Why do I see "npm" in the instructions? Isn't that connected to nodejs? What if I'm writing a java web server app, will this still work, or does it need to talk to a nodejs server somehow? 2. I take it none of this hits a third party server (i.e. your server)? 3. How do I get the user's info obt…

1. NPM is just an easy way to install it, you can also use bower or just download the source and minified packages.

2. I see no reason why it would.

3. It's all client based regardless of how you do it, it just adds cookies. If you want to get the information server side just get it server side (PHP example https://github.com/thephpleague/oauth2-client) there is no need to get it client side if you need it server side with a server side library (thus why NPM is shown as node is server side).

Re: HelloJS – Client-side OAuth for JS

#7
post #3

HelloJS is great. I've used it in my last project. It just works. It's well tested, and well documented. There's very little option twiddling required. It just worked seemlessly when I was trying to setup Twitter, Google, LinkedIn and Facebook OAuth logins.

Nice endorsement
Post reply on HN