private static AuthenticationConfiguration CreateConfiguration()
        {
            var config = new AuthenticationConfiguration
            {
                DefaultAuthenticationScheme = "Basic",
            };

            config.AddBasicAuthentication(OnValidationDelegate);

            return config;
        }