TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

HelloJS – Client-side OAuth for JS

160 点作者 sidi超过 10 年前

15 条评论

reubano超过 10 年前
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 未加载
wyuenho超过 10 年前
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 未加载
shaydoc超过 10 年前
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.
pluma超过 10 年前
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?
1337badger超过 10 年前
This is a terrible idea that is full of security holes! If you can call having paper-thin pseudo security a hole.
评论 #8302164 未加载
plingamp超过 10 年前
Very interesting project! Can you explain what some of the differences are between this library and PassportJS?
评论 #8301122 未加载
评论 #8301145 未加载
joeframbach超过 10 年前
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 未加载
adodson超过 10 年前
Thanks for sharing my project HelloJS
评论 #8300773 未加载
评论 #8300985 未加载
tsmash超过 10 年前
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 未加载
bzelip超过 10 年前
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.
knackers超过 10 年前
Looks great. It&#x27;s such a pain to write separate authentication &#x2F; profile retrieval logic for each service.
ishi超过 10 年前
This looks pretty awesome. Could it be used for importing email contacts from gmail&#x2F;yahoo&#x2F;live etc.?
评论 #8302099 未加载
j-rom超过 10 年前
This looks amazing. Are you planning on adding any other services?
评论 #8301162 未加载
blueskin_超过 10 年前
Client-side authentication. In javascript.<p>What could possibly go wrong? ;)
sleepychu超过 10 年前
Oh my god the kerning on that font.
评论 #8305412 未加载
评论 #8303345 未加载