Re: Provide auth username/password with system properties or environment?

2015-11-19 Thread Shawn Heisey
On 11/19/2015 3:03 AM, Oleg Kalnichevski wrote:
> On Wed, 2015-11-18 at 13:17 -0700, Shawn Heisey wrote:
>> In the meantime, I am hoping that there is a way that Solr users can
>> provide credentials to HttpClient via another means, like system
>> properties or environment variables.  Is there anything like that?
> Shawn
>
> One can always use a custom credentials provider instead of the default
> ones.
>
> http://hc.apache.org/httpcomponents-client-4.5.x/httpclient/xref/org/apache/http/impl/client/BasicCredentialsProvider.html
> http://hc.apache.org/httpcomponents-client-4.5.x/httpclient/xref/org/apache/http/impl/client/SystemDefaultCredentialsProvider.html

I'm hoping to give users of the existing code a way to provide
authentication details to HttpClient.  The users aren't creating Java
code, they are using bits that we provide -- a shell script or Windows
command script that executes a binary SolrCLI class.  That class
currently doesn't do anything with authentication.

>From what I can tell, there isn't a way, and users will need to wait for
us to extend our script and SolrCLI class to handle credentials.

Thanks,
Shawn


-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org



Provide auth username/password with system properties or environment?

2015-11-18 Thread Shawn Heisey
Recent versions of Solr have added basic authentication.  The Solr
client functionality uses HttpClient.

The start script included with Solr has some additional functionality
for manipulating the running server, and the class that this script
calls uses HttpClient to talk to Solr.  We have an issue to add the
ability to provide user/password to this script:

https://issues.apache.org/jira/browse/SOLR-8048

In the meantime, I am hoping that there is a way that Solr users can
provide credentials to HttpClient via another means, like system
properties or environment variables.  Is there anything like that?

Thanks,
Shawn


-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org