Skip to content

http connection with body credentials #26268

Answered by potiuk
alexisaraya asked this question in General
Discussion options

You must be logged in to vote

Yes - you need your server to support basic authentication (default) or any other AuthType supported by requests library
. If you need other auth than those supported by requests library, you need to write your own custom Hook extending HTTPHook and implementing any authentication scheme - same as you would in any other Python code using requests library.

You can see how auth is instantiated by the Hook https://github.com/apache/airflow/blob/main/airflow/providers/http/hooks/http.py#L97

And you can read all details (including examples) on how you can write your own custom authentication if the authentication schemes provided by requests are not enough for you https://requests.readthedocs.…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alexisaraya
Comment options

You must be logged in to vote
2 replies
@potiuk
Comment options

@jose-sotelocohen-adyen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants