TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

HelloJS – Client-side OAuth for JS

160 pointsby sidiover 10 years ago

15 comments

reubanoover 10 years ago
Hmm, I don't see any mention of security. I can't find the source, but I remember reading that if you wanted to restrict access to certain pages on your site to authenticated users in a single page app it was more secure to do it server side. Security experts feel free to chime in.
评论 #8301942 未加载
评论 #8303426 未加载
评论 #8301810 未加载
评论 #8301519 未加载
评论 #8301523 未加载
评论 #8301281 未加载
wyuenhoover 10 years ago
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.
评论 #8300817 未加载
shaydocover 10 years ago
This is great, perfect for little consumer web apps. I am so happy about this, becuase we (my dev buddies) have just had an idea for a little social game that would be great if ported onto the web. I think I have just solved our simplistic user auth needs by reading this article.<p>Thanks for sharing.
plumaover 10 years ago
How does this get away with not using the client secret? I thought OAuth 2.0 always required a three-way handshake (client is sent to provider, provider sends client back to service, service exchanges grant token with the provider).<p>Does this mean in Facebook, Google etc the grant token and the access token are identical?
1337badgerover 10 years ago
This is a terrible idea that is full of security holes! If you can call having paper-thin pseudo security a hole.
评论 #8302164 未加载
plingampover 10 years ago
Very interesting project! Can you explain what some of the differences are between this library and PassportJS?
评论 #8301122 未加载
评论 #8301145 未加载
joeframbachover 10 years ago
Could you explain why I should favor client-side auth over server-side auth, especially if I want to do some action on behalf of the user, like generating word-clouds of their posts, etc. And what makes helloJS different from oauth.io, which has open-sourced their server?
评论 #8304276 未加载
评论 #8303539 未加载
评论 #8303994 未加载
adodsonover 10 years ago
Thanks for sharing my project HelloJS
评论 #8300773 未加载
评论 #8300985 未加载
tsmashover 10 years ago
Once you&#x27;re authenticated in a client web page, lets say you want to perform data storage on your <i>own</i> server using this authenticated user as validation. How would your server validate the user&#x27;s login is valid to accept user actions?
评论 #8305504 未加载
bzelipover 10 years ago
I really like adodson&#x27;s web game. Check out <a href="http://adodson.com/#escape" rel="nofollow">http:&#x2F;&#x2F;adodson.com&#x2F;#escape</a> for browser MineField &amp; Flood It.
knackersover 10 years ago
Looks great. It&#x27;s such a pain to write separate authentication &#x2F; profile retrieval logic for each service.
ishiover 10 years ago
This looks pretty awesome. Could it be used for importing email contacts from gmail&#x2F;yahoo&#x2F;live etc.?
评论 #8302099 未加载
j-romover 10 years ago
This looks amazing. Are you planning on adding any other services?
评论 #8301162 未加载
blueskin_over 10 years ago
Client-side authentication. In javascript.<p>What could possibly go wrong? ;)
sleepychuover 10 years ago
Oh my god the kerning on that font.
评论 #8305412 未加载
评论 #8303345 未加载