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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

OAuth & One-Page Apps: Avoiding the Redirect

32 点作者 chucknibbleston将近 13 年前

5 条评论

darklajid将近 13 年前
I kinda sound like a grumpy old man, constantly complaining about the same stuff. But..<p>For the love of everything that's holy, stop adding these totally useless social media bars that are floating on top of your potentially interesting content. This entry is unreadable on the go, I'll probably forget to come back later today and the only thing I'll recall is that there was another "of those" useless submissions.
评论 #4032897 未加载
ew将近 13 年前
We, Backup Box, are a one page app and we do OAuth without redirect all the time. In fact we have one script that handles all the OAuth processes and any new ones we need to create just pop in and there's no customization to be done.<p>I open a new window (tab) with the OAuth process and since I opened the tab I can redirect to some quick closing script and my main code is waiting for the auth process to finish. Once it does the user is through. Easy peasy.<p><a href="https://mybackupbox.com" rel="nofollow">https://mybackupbox.com</a>
评论 #4031648 未加载
pshc将近 13 年前
That page is spazzing out at me in Mobile Safari. Some kind of responsive style script conflicting with Safari's auto-formatter?
评论 #4031943 未加载
clarle将近 13 年前
Is there a best practice of doing authentication for single-page apps when you don't want to use an external OAuth provider, since a lot of people don't have Twitter/Facebook accounts?<p>Would you end up writing your own OAuth provider in that case?
评论 #4031453 未加载
评论 #4031481 未加载
drivebyacct2将近 13 年前
that chart makes an extremely simple flow extraordinarily hard to understand.