private static IEnumerable <Claim> GetClaims(this LdapEntry entry, string email, string name, string role)
        {
            var claims = new List <Claim>();

            claims.Add(new Claim(email, entry.GetMail()));
            claims.Add(new Claim(name, entry.GetName()));
            claims.AddRange(entry.GetGroups().Select(group => new Claim(role, group)));
            return(claims);
        }