How can I provide an ASP.NET Forms Authentication UX while using Active Directory Role and Authentication providers?

前端 未结 3 634
野性不改
野性不改 2020-12-08 17:29

Is it possible to use this Role Provider AspNetWindowsTokenRoleProvider with ASP.NET FORMS Authentication (via this MembershipProvider System.Web.Security

3条回答
  •  一整个雨季
    2020-12-08 17:55

    Implement your own ADAuthorizeAttribute by inheriting from AuthorizeAttribute and overriding AuthorizeCore. It's a lot easier than implementing your own role provider or installing and configuring AzMan.

    See my example here: ASP .NET MVC Forms authorization with Active Directory groups.

提交回复
热议问题