MVC5 Claims version of the Authorize attribute
I ended up just writing a simple attribute to handle it. I couldn’t find anything in the framework right out of the box without a bunch of extra config. Listed below. public class ClaimsAuthorizeAttribute : AuthorizeAttribute { private string claimType; private string claimValue; public ClaimsAuthorizeAttribute(string type, string value) { this.claimType = type; this.claimValue = value; … Read more