Solrnet - How to initialize instance with basic authentication
-
27-10-2019 - |
Question
It is possible to connect solr instance with basic authentication ?
I have tried with :
Startup.Init<Page>("http://user:mdp@localhost:8080/solr");
But it doesn't work.
have you got a solution ?
Thanks.
Solution
Implement a IHttpWebRequestFactory
that returns an authenticated web request. See http://code.google.com/p/solrnet/issues/detail?id=66
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow