I'm trying to make a custom authorization attribute in ASP.NET Core. In previous versions it was possibl