Top "Authorize-attribute" questions

MVC 4 override AuthorizeAttribute not working

I created a basic MVC 4 project. Added the HomeController and Home\Index.cshtml and ContactUs.cshtml. Add route in Global.…

asp.net-mvc-4 authorize-attribute
MVC5 Authentication: Authorize attribute on every controller or base controller

I have been doing a lot of research on the best way to secure my MVC 5 application. We have one …

asp.net-mvc-5 asp.net-identity owin authorize-attribute
Dynamic authorization of roles asp.net core

This is not a duplicate question or rather the solutions given in other solutions have not worked. Lets say there …

asp.net asp.net-core asp.net-identity authorize-attribute role-based-access-control
How does the AuthorizeCore Method work?

My question is how does the AuthorizeCore method work? For example when I wanted to create custom Authorize attribute I …

asp.net-mvc authorize-attribute
asp.net MVC5 - Dependency Injection and AuthorizeAttribute

I searched a long time for a solution for my problem. I have a custom AuthorizeAttribute that needs a Dependency …

c# entity-framework dependency-injection asp.net-mvc-5 authorize-attribute
ASP.Net Core 2.0 mixed authentication of JWT and Windows Authentication doesn't accept credentials

I've API created in asp.net core 2.0 where I am using mixed mode authentication. For some controllers JWT and for …

c# authorization asp.net-core-2.0 authorize-attribute
ASP.NET MVC Global or BaseController ActionFilter to Execute Before OnAuthorization

In my application (ASP.NET MVC 3) I have a BaseController class that all my Controllers inherit and in that BaseController …

c# asp.net-mvc authorization actionfilterattribute authorize-attribute
is there an authorizeattribute equivalent to just standard web forms (not MVC) for .net

I'm working on a project that will use windows role providers and I want to limit functionality to certain AD …

.net webforms roleprovider authorize-attribute
Bypass or turn off [Authorize(Roles="")] during development?

Building an MVC3 application, and TPTB want us to use their custom authorization provider. However, during development this auth provider …

c# asp.net-mvc asp.net-mvc-3 authorization authorize-attribute
asp.net MVC 3 applying AuthorizeAttribute to areas

I'm currently writing an Admin MVC 3 site, and each user only has access to certain parts of the site. The …

asp.net-mvc asp.net-mvc-3 filter asp.net-mvc-areas authorize-attribute