How do you create a custom ASP.NET MVC 5 Auth without using the UserStore of Microsoft.AspNet.Identity.EntityFramework??
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Carriage Return (ASCII chr 13) is missing from tex
- MVC-Routing,Why i can not ignore defaults,The matc
- Why am I getting UnauthorizedAccessException on th
All you have to do is implement the same interfaces that the Userstore for
Identity.Entityframework
uses.User
will be your user classThen pass your
MyUserStore
into theUserManager
each requestYou can grab UserStore.cs template from the following project on GitHub and tweak it as you like, it will allow you to get rid of the dependency on Microsoft.AspNet.Identity.EntityFramework.
https://github.com/kriasoft/AspNet-Server-Template -> ./src/App.Server/Data/UserStore.cs
(disclaimer: I'm the author of this project template)