public static ClaimsIdentity CreateAthleteClaims(
            SegmentChallengeConfiguration configuration,
            Athlete athlete)
        {
            var claimsIdentity = new ClaimsIdentity();

            claimsIdentity.AddClaim(new Claim("sub", athlete.Id.ToString()));
            claimsIdentity.AddClaim(new Claim("name", athlete.GetDisplayName()));

            claimsIdentity.AddClaim(new Claim("user_data", JsonConvert.SerializeObject(new {
                profile_picture = athlete.ProfilePicture,
                birth_date      = athlete.BirthDate?.ToString("yyyy-MM-dd"),
                gender          = athlete.Gender,
                email           = athlete.Email,
                is_admin        = configuration.Administrators.Contains(athlete.Id)
            })));

            return(claimsIdentity);
        }