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.

Ask HN: What's the best way to implement multiple oauth authentication?

7 pointsby kappaknightover 13 years ago
My team is working on a new project and we wanted to implement Facebook and Twitter OAuth verifications on top of the traditional email and password verification. We looked around on the web and setting up access keys to Facebook and Twitter are both pretty easy to figure out.<p>My question is, if a user registers via Twitter, adds some data to the system, logs out; and some time later decides to register via Facebook, how would the system know to combine those two separate registrations into one account? Is there a best practice for this exact problem already posted somewhere on the web?<p>Thanks in advance!

2 comments

juntoover 13 years ago
Separate the concepts of a user account, their identity and authentication.
评论 #3605811 未加载
kappaknightover 13 years ago
So in order to link/associate the accounts, the user would need to be logged in to at least one of the authentication methods? I guess there's no way to connect them otherwise...
评论 #3617610 未加载