Posted 20 August 2020, 8:00 am EST
In the Startup.ConfigureServices method of our application we use the services.SetupJwtBearerAuthenticationServices method to setup JWT authentication with auth0.com.
Then on our controllers, we add the [Authorize] attribute to the controller class, and on each controller method we add a custom [Perimssion] attribute that we created that checks to see if the user has the necessary role to call that particular API method.
My apologies, I am not able to post our code on a forum.
So normally we would just add these attributes to the controller class and the controller methods. My hope was I could just override the ActiveReports controller classes, add the attributes, and then in the controller methods call the base method. But I have not been able to figure out how to do that.