Integrate MiniProfiler with .NetCore 3.1
问题 I want to integrate MiniProfiler is a WebApi or View /XX/results-index. The WebApi is authenticated with Bearer Tokens. I only want Group Users in Active Directory can see the results, but I don't get it. I have this code in ServicesCollection: services.AddMiniProfiler(options => { options.RouteBasePath = "/profiler"; options.ResultsAuthorizeAsync = async request => await GetAuthorization(request); }).AddEntityFramework(); private static async Task<bool> GetAuthorization(HttpRequest request)