Support for the HTTP Digest authentication on MicroPython (requests and/or aiohttp) #15138
Unanswered
beyonlo
asked this question in
Libraries & Drivers
Replies: 1 comment
-
Digest authentication is done using the Authorization header. Both request and aiohttp allow to specify that from the outside. So you do not need to pick a library, nor does this need to happen inside the library. You just need to have code that crafts the correctly formatted header |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
I need to communicate with some products that have an API that support only
HTTP Digest authentication
, I mean, they do not supportHTTP Basic authentication
and it is not possible to disable the authentication.I see that MicroPython has two HTTP client libs that can be used for that purpose:
requests
(https://github.com/micropython/micropython-lib/tree/master/python-ecosys/requests) - It issync
, and supportHTTP Basic authentication
, but does not supportHTTP Digest authentication
aiohttp
(https://github.com/micropython/micropython-lib/tree/master/python-ecosys/aiohttp/aiohttp) - It isasync
, and does not supportHTTP Basic authentication
and does not supportHTTP Digest authentication
as well.I see there is this uwwwauth.py -> https://github.com/pfalcon/pycopy-lib/blob/master/uwwwauth/uwwwauth.py that is a support for
HTTP Digest authentication
for the pycopy (It seems to be like as old fork of MicroPython). Can that help to supportHTTP Digest authentication
on therequests
and/oraiohttp
clients?Is it a simple or difficult task to support
HTTP Digest authentication
on the MicroPythonrequests
/aiohttp
? If I were to choose just one that http client libs to be supported by theHTTP Digest authentication
, I would like to be theaiohttp
because it is async (asyncio), so I do not need to use threads to have a non blocking code.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions