Published: February 18 2014
ASP.NET Web API 2 - Enum Authorize Attribute
This post shows you how to create a custom authorization attribute which allows you to pass in a list of enums as parameters to restrict access by role. I'm using this attribute on the controllers of a RESTful Web API built with ASP.NET WEB API 2.