Passing credentials with requests
See original GitHub issueIt’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:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
thanks for testing the beta release. Il release it soon.