kairosdb / kairosdb-client

Java Client for KairosDB
65 stars 69 forks source link

Authentication #87

Closed juanmaloperz closed 6 months ago

juanmaloperz commented 3 years ago

hello, If I wan to pass Credentials with Http Apache I will do it like this

  CredentialsProvider provider = new BasicCredentialsProvider();
            UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("testuser","testPassword");
            AuthScope authscp = new AuthScope("test.com", 403);
            provider.setCredentials(authscp, credentials);
            CloseableHttpClient client = HttpClientBuilder.create().setDefaultCredentialsProvider(provider).build();

but in the Library I do not see a way to pass the authentication, is there any form? regards

brianhks commented 6 months ago

Currently you can pass the builder to one of the constructors so you can setup the auth before calling the client.