public NodeHttpClient(Authenticator authenticator, NodeOptions nodeOptions) : base(new NodeHttpHandler(nodeOptions)) { _authenticator = authenticator; DefaultRequestHeaders.Authorization = authenticator.AuthorizationHeader; }
public NodeHttpHandler(NodeOptions nodeOptions) { ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => nodeOptions.CoreConnectionIgnoreSslWarnings || new HttpClientHandler().ServerCertificateCustomValidationCallback(message, cert, chain, errors); }
public Authenticator(NodeOptions options) { _options = options; }