Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC5 Identity Customizing

is there a way to customize the database access in the new MVC5 identity?

I don´t use the DbContext in my web project, because I created some security and validation layers for database access.

Do I have to derive from UserManager or UserStore, implement the interfaces IUserPassword store or something like that?

I heard something about an API to customize identity, but how can I use this API?

like image 936
WhiteIntel Avatar asked Dec 29 '25 16:12

WhiteIntel


1 Answers

You need to implement your own UserStore and User types to match the schema that you want. You will have to implement the Interfaces for the features that you want in your system You can reuse the UserManager since UserManager just uses the UserStore and User that you pass in.

The following article explains you in detail how to do it http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity

like image 199
pranav rastogi Avatar answered Dec 31 '25 05:12

pranav rastogi