Custom Membership and Role provider in ASP.NET MVC 4

后端 未结 4 1749
一个人的身影
一个人的身影 2020-12-05 07:43

I am creating an ASP.NET MVC 4 web application. I googled about custom membership, but I couldn\'t find good resources or video lectures.

Most of them are either out

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 08:37

    I suggest using ASP.Net Identity instead of old membership.ASP.Net Identity is a way better and more flexible than old membership, it also supports role-based authentication using action filters and you can implement your own customized providers (such as role and user providers).

    see links below

    https://weblog.west-wind.com/posts/2015/Apr/29/Adding-minimal-OWIN-Identity-Authentication-to-an-Existing-ASPNET-MVC-Application

    http://www.c-sharpcorner.com/article/create-identity-in-simple-ways-using-asp-net-mvc-5/

提交回复
热议问题