public async Task InvokeAsync(HttpContext httpContext, IClaimsService claimsService) { var user = httpContext.User; if (user != null && user.Identity.IsAuthenticated) { claimsService.LoadClaims(user); } await _next(httpContext); }