-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[8.0] Allow using http_auth with RequestsHttpNode for custom authentication #1778
Comments
Work is done on the transport side: elastic/elastic-transport-python#48 |
Error importing
|
@naisanzaa Transport-layer classes aren't supplied via the |
So what is the solution to this problem ? |
Since there's a lot of interest in this feature, this will be released in 8.2.0 but support is currently merged into |
changed from RequestsHttpConnection to RequestsHttpNode as 'RequestsHttpConnection' was removed from 'elasticsearch' and is replaced with RequestsHttpNode from elastic_transport elastic/elasticsearch-py#1778 (comment)
FYI, for those struggling with using the requests module in Elasticsearch 8.x is hardly documented well, we shouldn't need to thunk down versions, we just need to tell it to use RequestsHttpNode and set the appropriate variables.
|
Using
http_auth
is deprecated for passingTuple[str, str]
andstr
but is useful for custom HTTP authentication with the Requests library. For example Kerberos and GSS are possible with this method. To allow for these to continue working we'll continue settingrequests.Session.auth = http_auth
when used this way.Reference: #1776 (comment)
The text was updated successfully, but these errors were encountered: