protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, RoleClaim requirement)
        {
            foreach (string role in requirement.AllowedRoles)
            {
                if (_identity.IsInRole(role))
                {
                    context.Succeed(requirement);
                    break;
                }
            }

            return(Task.CompletedTask);
        }