OAuth2, creating local accounts using Facebook and Google -


i'm trying implement oauth2-based registration/login project i'm working on.

a thought struck me; if user decides login site first time using facebook , second time using google;

1) possible connect 2 different login methods same account?

2) idea?

at first thought use email unique identifier, doubt secure enough.

is there way accomplish this, or should create 2 separate accounts two, depending on login method used?

why should e-mail unique identifier lack security? problem user having kind of spam mail address @ facebook avoid email notifications. give user cookie , if he's trying authenticate second time google instead of facebook, created account can work around function enabling him connect google subaccount main one, created facebook. needs quite amount of time ;)


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -