godong9 / solr-node

Simple Solr Node Client Project.
MIT License
25 stars 25 forks source link

solr Basic Auth #80

Closed lvenier closed 5 years ago

lvenier commented 5 years ago

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' });

lvenier commented 5 years ago

made a proposal through https://github.com/godong9/solr-node/pull/81

lvenier commented 5 years ago

Any chance to have it considered ?

godong9 commented 5 years ago

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

lvenier commented 5 years ago

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

Thanks.