Implement resource-based authorization with ASP.NET Core