ASP.NET: Permission/authentication architecture

前端 未结 5 1209
天涯浪人
天涯浪人 2021-02-08 23:29

I am looking into building an authentication in my ASP.NET application with the following requirements.

  • A user has exactly one Role (i.e. Admin, S
5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-09 00:12

    The membership API provided since ASP.NET 2.0 should suit your requirements well. The only thing I'm afraid it doesn't directly support is hierarchical roles. However you can easily use normal role based security with another manually written hierarchical roles table to achieve the required things.

提交回复
热议问题