CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
MIT License
2.08k stars 175 forks source link

Support "policies" #189

Closed jchannon closed 5 years ago

jchannon commented 5 years ago

Support ASP.NET Core policies

Some background here https://stormpath.com/blog/tutorial-policy-based-authorization-asp-net-core

MVC equivalent:

[Authorize(Policy = "RequireElevatedRights")]
public class ChannelAdministrationController: Controller
{
}

cc // @damianh