I have a very simple table that has UserID as int Password as text and Roles as text(comma separated).
Can i customize ASP.NET Identity structure to use it with my table?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Yes, you can make Identity work with your structure. You’ll have to implement IPasswordValidator to take whatever hashing (I hope it is hashed) is used for your password. Also you’ll have to implement IUserStore to point to your table. And IUserRoleStore also have to be implemented to take roles from your CSV list.
Here is an overview of the architecture: http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0