micropython / micropython/micropython-lib
Feature request: support for the HTTP Digest authentication on the requests and/or the aiohttp
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 2.9k
- Fork
- 1.1k
- Merge medio
- 7g 6h
- PR unite (30g)
- 3
Descrizione
Hi all!
I need to communicate with some products that have an API that support only HTTP Digest authentication, I mean, they do not support HTTP 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 authenticationaiohttp(https://github.com/micropython/micropython-lib/tree/master/python-ecosys/aiohttp/aiohttp) - It isasync, and does not supportHTTP Basic authenticationand does not supportHTTP Digest authenticationas 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 support HTTP Digest authentication on the requests and/or aiohttp http clients?
Is it a simple or difficult task to support HTTP Digest authentication on the MicroPython requests/aiohttp? If I were to choose just one that http client libs to be supported by the HTTP Digest authentication, I would like to be the aiohttp because it is async (asyncio), so I do not need to use threads to have a non blocking code. But if is supported just on the requests lib, is very good as well.
Thank you in advance!
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia leggendo i percorsi client di requests e aiohttp collegati nell’issue, quindi confrontali con l’implementazione di pycopy-lib in uwwwauth.py. Decidi se il supporto deve riguardare uno o entrambi i client e considera completato il lavoro quando il client selezionato può comunicare con API che supportano solo HTTP Digest.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, authentication, security
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100