godong9/solr-node

solr Basic Auth

lvenier opened this issue · 4 comments

It is possible to setup Basic Authentication with Sorl :
https://lucene.apache.org/solr/guide/7_6/basic-authentication-plugin.html

The auth login/passwor should be added when creating the client:

var client = new SolrNode({
host: '127.0.0.1',
port: '8983',
core: 'test',
protocol: 'http',
user: 'cool',
password: 'reallycool'
});

made a proposal through #81

Any chance to have it considered ?

This feature is breaking changes.
Need to consider backwards compatibility.

Added to 1.2.1.
juste npm update on my application and ti's all good for me.

Thanks.