ASP.NET MVC - Alternative to Role Provider?

前端 未结 5 1980
灰色年华
灰色年华 2020-12-02 04:15

I\'m trying to avoid the use of the Role Provider and Membership Provider since its way too clumsy in my opinion, and therefore I\'m trying to making my own \"version\" whic

5条回答
  •  眼角桃花
    2020-12-02 04:27

    If you use Castle Windsor Dependency Injection you can inject lists of RoleProviders that can be used to ascertain user rights from any source you choose to implement.

    http://ivida.co.uk/2011/05/18/mvc-getting-user-roles-from-multiple-sources-register-and-resolve-arrays-of-dependencis-using-the-fluent-api/

提交回复
热议问题