summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2011-01-12 21:31:37 +0100
committerHelmut Grohne <helmut@subdivi.de>2011-01-12 21:31:37 +0100
commit225f9536a67240ada1bb1195328de8bfdcebb041 (patch)
tree7c47e06d508207d9e41de52f5cffbec2f84efb44
parent613e0e381a2860c8f027b4665a20a90768875ebd (diff)
downloadwsgitools-225f9536a67240ada1bb1195328de8bfdcebb041.tar.gz
improved AuthDigestMiddleware doc string
-rwxr-xr-xwsgitools/digest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wsgitools/digest.py b/wsgitools/digest.py
index bb587fa..2a8da05 100755
--- a/wsgitools/digest.py
+++ b/wsgitools/digest.py
@@ -478,7 +478,10 @@ class DBAPI2NonceStore(NonceStoreBase):
__all__.append("AuthDigestMiddleware")
class AuthDigestMiddleware:
- """Middleware partly implementing RFC2617. (md5-sess was omited)"""
+ """Middleware partly implementing RFC2617. (md5-sess was omited)
+ Upon successful authentication the environ dict will be extended
+ by a REMOTE_USER key before being passed to the wrapped
+ application."""
algorithms = {"md5": lambda data: md5(data).hexdigest()}
def __init__(self, app, gentoken, maxage=300, maxuses=5, store=None):
"""