public override async Task <ClaimsIdentity> CreateIdentityAsync(User user, string authenticationType)
        {
            var claims = await base.CreateIdentityAsync(user, authenticationType);

            var permissions = await _permissionStore.GetUserPermissions(user.Id);

            foreach (var permission in permissions)
            {
                claims.AddClaim(new Claim("Permission", permission.Type.ToString()));
            }

            return(claims);
        }