Last post Jul 07, 2015 04:57 AM by Li Wang
Jun 27, 2015 10:50 AM|thsman|LINK
I'm referring to the code that appears automatically on the RegisterExternalLogin.aspx and code behind pages.
Presumably the returned username from FB or wherever is checked against a database table to see if it is already associated with a registered user of my site and if it is found to be associated it will return True and, if not, will return False and the user
can then enter their registered user name for my site and then the returned user name from FB will be saved to a table and associated with the registered user of my site.
So what tables are looked at within this process?
Jun 27, 2015 02:49 PM|mostafasydney|LINK
In AspNet Identity 2 AspNetUsers table stores all the information that you have mentioned. The structure is below:
You can see other tables in the list, based on what are you using in your application each of them will be used/populated in accordance.
For external logins such as FB, Google, Twitter etc. the passwords are not stored in your database but it stores the email for the account and it is unique throughout the application. When you register your app to the provider and affter successfully integrating
the logins, each time users login with external ids there will be prompt for the user for trusting the application and if it ok then the user will be authenticated and allowed to use the app. Your app will not handle the password management for external logins.
Hope this will help.
Jun 27, 2015 03:48 PM|thsman|LINK
Thanks for that.
Here are the tables I have. Does this mean I'm missing some tables?
Jun 27, 2015 04:28 PM|mostafasydney|LINK
I thought you are using AspNet Identity 2 but it seems to be you are using ASPNET Membership database.
Jun 30, 2015 10:09 AM|thsman|LINK
What is the consequence of that?
If I could see the SQL queries I could modify as needed. Do you know where they are?
Jul 07, 2015 04:57 AM|Li Wang|LINK
Did you Migrating an Existing Website from SQL Membership to ASP.NET Identity?
Link below is for your reference.