简体   繁体   中英

Any way to treat ASP.NET Identity like a membership provider?

To be clear, I am aware that the Identity model does not implement anything to do with the membership provider model.

Since MS seems to have abandoned the MembershipProvider model in their latest web code and Visual studio as too limited, and I have to admit that it was often frustrating to work with, it seems they would replace it with something that, at least, out of the box did what a standard membership provider could do out of the box.

While there's certainly a market for claims-based authentication and authorization, simple authentication and role-based authorization still work quite well for a great deal of web applications... especially business applications that, for security/ audit reasons, users should NOT be allowed to register for, but rather be provisioned upon verification that all the proper steps have been followed.

With the Membership Provider, you could add users, assign roles, etc., right from within Visual Studio. I don't see this sort of thing available any more, and it baffles me that MS would think that such a style of provisioning would no longer have value.

I'm building my first MVC5 application, and I find myself seriously considering ripping this stuff out and going with something that I know works, but I really don't want to put obsoleted tech into a brand new project.

Is there any documented way to explicitly provision users and assign roles like what was available in the MembershipProvider, preferably within Visual Studio? I'm not suggesting it has to be exactly the same, or use the same interface, but at least have the same capability ... ie, create new users in a database, and assign roles to them.

Have a look on MembershipReboot from Brok Allen . I have not used it myself, but it sounds promising. He also started IdentityReboot that is also looks like an alternative to MS library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM