AWS Cognito with Facebook and Google: unique IdentityId? -


in web application, want allow users log in using 2 possible providers (facebook, google) , retrieve credentials using aws cognito.

from understand, if user (john@domain.com) logs in using facebook account, cognito identityid not same if had logged in using google account.

assuming user uses same email address (john@domain.com) log in both facebook , google accounts, how can make sure that user has single, unique identityid in cognito?

i not want user have 2 different identityid's. nice if associate john@domain.com single identityid.

cognito doesn't know email account registered. if same user authenticates on 2 different devices using facebook on 1 , google on other, give 2 different ids.

however, can told they're linked. if same user log in facebook on 1 device, they'd identity a. if link identity google account including login token both when communicating cognito, cognito know they're associated, , future authentication 1 of 2 providers give same id.

that deviates bit if both facebook , google had been linked id before cognito told link them - in case, id used either of two.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -