question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing credentials with requests

See original GitHub issue

It’s a follow-up to https://github.com/searchkit/searchkit/issues/477 closed by @joemcelroy

Joe’s answer doesn’t work - I am passing withCredentials as an option into SearchkitManager but the withCredentials option isn’t there at all in this.options on line 27 (https://github.com/searchkit/searchkit/blob/e22647fd22c48fa8a828d713d6b79e1b87c2c6ad/src/core/transport/AxiosESTransport.ts) when I debug thru the code. It gets lost somewhere on the way.

This is how I initialise SearchkitManager:

this.searchkit = new SearchkitManager(host, { multipleSearchers: false, searchUrlPath: '/search', withCredentials: true });

And this is the this.options object I see in AxiosESTransport module:

{"headers":{},"searchUrlPath":"/search","timeout":60000}

As you can see, withCredentials is not present there at all.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aleybovichcommented, Jul 31, 2017

They have, get the latest version. It works fine for me now

On Jul 31, 2017 9:49 AM, “Chris Finch” notifications@github.com wrote:

👍 also having this issue - any plans for a release?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/searchkit/searchkit/issues/481#issuecomment-319072484, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkqkU8iRbwU4ll6FRuFvm-Qq5EyrVUsks5sTduBgaJpZM4OSmFR .

0reactions
joemcelroycommented, Aug 6, 2017

thanks for testing the beta release. Il release it soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authentication using Python requests
Replace “user” and “pass” with your username and password. It will authenticate the request and return a response 200 or else it will...
Read more >
Authentication with Python Requests: A Complete Guide
Basic authentication refers to using a username and password for authentication a request. Generally, this is done by using the HTTPBasicAuth ...
Read more >
How do I use basic HTTP authentication with the python ...
from requests.auth import HTTPDigestAuth url = 'https://someserver.com' requests.get(url, auth=HTTPDigestAuth('user', 'pass')).
Read more >
Authentication — Requests 2.28.1 documentation
If no authentication method is given with the auth argument, Requests will attempt to get the authentication credentials for the URL's hostname from...
Read more >
Basic Auth with python requests. - Test Cult
1. USERNAME & PASSWORD AS CREDENTIALS: ... We can directly embed basic auth username and password in the request by passing username and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found