[8.0] Allow using http_auth with RequestsHttpNode for custom authentication
See original GitHub issueUsing http_auth
is deprecated for passing Tuple[str, str]
and str
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 setting requests.Session.auth = http_auth
when used this way.
Reference: https://github.com/elastic/elasticsearch-py/pull/1776#issuecomment-953299419
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Welcome to Flask-HTTPAuth's documentation! — Flask ...
The following example application uses a custom HTTP authentication scheme ... Flask-HTTPAuth will allow access only if get_password(username) == password .
Read more >How to create an Authentication Provider in Drupal 8
But what about if Basic Auth doesn't fit with your needs, well I will show you how to create a custom Authentication Provider....
Read more >How do I use basic HTTP authentication with the python ...
You need to use a session object and send the authentication each request. The session will also track cookies for you: session =...
Read more >Http Authentication
This simple example returns the username "user" and a password for every HTTP authentication interaction. A more realistic example would use the other...
Read more >Authentication - Laravel - The PHP Framework For Web Artisans
The simplest way to implement a custom, HTTP request based authentication system is by using the Auth::viaRequest method. This method allows you to...
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 FreeTop 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
Top GitHub Comments
Error importing
RequestsHttpConnection
: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.