RE: Programmatic Basic Auth on CloudSolrClient

2021-03-05 Thread Subhajit Das
; Sent: 05 March 2021 04:23 AM To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> Subject: Re: Programmatic Basic Auth on CloudSolrClient Ah, right, now I remember that something like this was possible with the "http1" version of the clients, which is why I created t

Re: Programmatic Basic Auth on CloudSolrClient

2021-03-04 Thread Tomás Fernández Löbbe
Ah, right, now I remember that something like this was possible with the "http1" version of the clients, which is why I created the Jira issues for the http2 ones. Maybe you can even skip the "LBHttpSolrClient" step, I believe you can just pass the HttpClient to the CloudSolrClient? you will have t

Re: Programmatic Basic Auth on CloudSolrClient

2021-03-04 Thread Mark H. Wood
On Wed, Mar 03, 2021 at 10:34:50AM -0800, Tomás Fernández Löbbe wrote: > As far as I know the current OOTB options are system properties or > per-request (which would allow you to use different per collection, but > probably not ideal if you do different types of requests from different > parts of

RE: Programmatic Basic Auth on CloudSolrClient

2021-03-03 Thread Subhajit Das
Thanks. This would be very helpful. From: Tomás Fernández Löbbe<mailto:tomasflo...@gmail.com> Sent: 04 March 2021 12:32 AM To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> Subject: Re: Programmatic Basic Auth on CloudSolrClient Maybe something like this (I omit

Re: Programmatic Basic Auth on CloudSolrClient

2021-03-03 Thread Tomás Fernández Löbbe
configure the client > with your workaround? > > From: Tomás Fernández Löbbe<mailto:tomasflo...@gmail.com> > Sent: 04 March 2021 12:05 AM > To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> > Subject: Re: Programmatic Basic Auth on CloudSolrClient &g

RE: Programmatic Basic Auth on CloudSolrClient

2021-03-03 Thread Subhajit Das
Hi Thomas, Thanks. Can you please also share a sample of code to configure the client with your workaround? From: Tomás Fernández Löbbe<mailto:tomasflo...@gmail.com> Sent: 04 March 2021 12:05 AM To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> Subject: Re: Progra

Re: Programmatic Basic Auth on CloudSolrClient

2021-03-03 Thread Tomás Fernández Löbbe
As far as I know the current OOTB options are system properties or per-request (which would allow you to use different per collection, but probably not ideal if you do different types of requests from different parts of your code). A workaround (which I've used in the past) is to have a custom clie