Skip to content

Commit ab76c5a

Browse files
TimMenningerfeus4177bdracoDreamsorcerer
authored
Digest Authentication Middleware for aiohttp (#10725)
Co-authored-by: jf <[email protected]> Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Sam Bull <[email protected]>
1 parent 0832571 commit ab76c5a

10 files changed

+1345
-0
lines changed

CHANGES/10725.feature.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware)
2+
that implements RFC 7616. The middleware supports all standard hash algorithms
3+
(MD5, SHA, SHA-256, SHA-512) with session variants, handles both 'auth' and
4+
'auth-int' quality of protection options, and automatically manages the
5+
authentication flow by intercepting 401 responses and retrying with proper
6+
credentials -- by :user:`feus4177`, :user:`TimMenninger`, and :user:`bdraco`.

CHANGES/2213.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10725.feature.rst

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ Jesus Cea
194194
Jian Zeng
195195
Jinkyu Yi
196196
Joel Watts
197+
John Feusi
197198
John Parton
198199
Jon Nabozny
199200
Jonas Krüger Svensson

aiohttp/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
WSServerHandshakeError,
4848
request,
4949
)
50+
from .client_middleware_digest_auth import DigestAuthMiddleware
5051
from .client_middlewares import ClientHandlerType, ClientMiddlewareType
5152
from .compression_utils import set_zlib_backend
5253
from .connector import AddrInfoType, SocketFactoryType
@@ -169,6 +170,7 @@
169170
# helpers
170171
"BasicAuth",
171172
"ChainMapProxy",
173+
"DigestAuthMiddleware",
172174
"ETag",
173175
"set_zlib_backend",
174176
# http

0 commit comments

Comments
 (0)