Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic authorize #4

Closed
vnmylove opened this issue Sep 27, 2018 · 3 comments
Closed

Basic authorize #4

vnmylove opened this issue Sep 27, 2018 · 3 comments

Comments

@vnmylove
Copy link

vnmylove commented Sep 27, 2018

Hi
I want to improve to support authorize with Basic Authorization.
I have edited in jsonRequestApi.js as below :
headers : {
"Authorization" : "Basic " + new Buffer( opts.user + ":" + opts.pass).toString("base64")
}
but it didn't work. It's time out. Please tell me where i can edit to support Basic Authorization

@sajov
Copy link
Owner

sajov commented Sep 29, 2018

Its Not realy implemented yet. I Never ran a solr on a public Port. I will have a Look next days.
Thx

@sajov
Copy link
Owner

sajov commented Oct 1, 2018

Hi
Basic Auth should work like
const Service = new solr.Service({ host: 'http://localhost:8983/solr', core: '/gettingstarted', requestDefaults:{ 'user': 'username', 'pass': 'password', 'sendImmediately': false } });

See request
Please let me know if it works for you

@sajov
Copy link
Owner

sajov commented Oct 25, 2018

@vnmylove Did it work for you?

@sajov sajov closed this as completed Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants