3

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.