Thanks for your responses. Good pointers on setting the header at
request and client level. I might just go with Ufuk's tip and set the JWT
token in the HttpClient and pass it in the withHttpClient() method of the
Builder while building the SolrClient.
Having said that, would still be interested i
The SolrRequest supports addHeader(), so you may be able to add the JWT header
to the request, then call mySolrRequest.process(myHttpSolrClient)
Jan
> 16. des. 2023 kl. 08:46 skrev ufuk yılmaz :
>
> Isn’t jwt token just some http header? I wonder if it could be added easily
> by constructing a
Isn’t jwt token just some http header? I wonder if it could be added easily by
constructing a custom http client instance for solrj to use.
Also docs say that it supports multiple authentication schemes. Maybe you can
use http basic and a service account just for solrj and jwt for other clients
I guess one option would be running it behind a proxy (nginx, varnish,
haproxy etc) and adding the authentication at that level. This also means
you can use the proxy as an SSL terminator and so secure traffic.
On Sat, Dec 16, 2023 at 3:03 AM Rahul Goswami wrote:
> Hello,
> I am using Solr 8.11.