Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:06:18+00:00 2026-06-14T14:06:18+00:00

I want users to be able to login from any provider (facebook, google, etc)

  • 0

I want users to be able to login from any provider (facebook, google, etc) from my app and also to create an account with my server. What I want to figure out is the best way to construct a user model doing this.

For example,

A user logs in using facebook a new user record will be made and there will be a flag in the record telling me that the account is a facebook account. If the same user creates a standard account with my server and then logs back in using facebook, how shall I handle this? Is the best practice to merge/relate these two accounts with each other or to treat them as two different records?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:06:19+00:00Added an answer on June 14, 2026 at 2:06 pm

    Currently Im working on the same things. I will use these rules:

    • Check emails. Its be best way to identify user.
    • Set special long-time cookie after successful registration. Later you can ask user to merge
      accounts.
    • Username, realname, birthday etc can be used as additional
      params to compare.

    About scheme: I create a table users (id, username, email) and user_data (id, user_id, email, service_id, service_name, service_type, is_active). service_id is a Provider-specific identifier, service_type is a Provider name (google/facebook/etc), and service_name is a displayName from Provider’s site (may differs from user.username). service_id + service_type must be unique.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I want users to be able to login from different computers simultaneously. So
So I have an app, I want users to create a login within my
I want users to be able to enter data from a web server and/or
In my app I want users to be able to associate a file(s) they
In my Rails app I want users to be able to input video links
I have an app where we want users to be able to send us
I'm able to create an excel file using apache poi. however, i want users
Using the current rails 2 I want users to be able to create an
I want users to be able to upload files via FTP to my site
Similar Stack Overflow Question I want users to be able to search through my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.