summaryrefslogtreecommitdiff
path: root/wsgitools
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2011-01-12 21:33:37 +0100
committerHelmut Grohne <helmut@subdivi.de>2011-01-12 21:33:37 +0100
commit8456020f53b563a16edd87a49de31607acde720c (patch)
treeabdfd0fb251ac6d06cadf312546a88a6dafdface /wsgitools
parent225f9536a67240ada1bb1195328de8bfdcebb041 (diff)
downloadwsgitools-8456020f53b563a16edd87a49de31607acde720c.tar.gz
DictAuthChecker.__call__ should take an environwsgitools-0.2.2
as this is tried by BasicAuthMiddleware first.
Diffstat (limited to 'wsgitools')
-rw-r--r--wsgitools/middlewares.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py
index 654f5db..2b6b51b 100644
--- a/wsgitools/middlewares.py
+++ b/wsgitools/middlewares.py
@@ -300,11 +300,12 @@ class DictAuthChecker:
@type users: {str: str}
@param users: is a dict mapping usernames to password."""
self.users = users
- def __call__(self, username, password):
+ def __call__(self, username, password, environ):
"""check_function interface taking username and password and resulting
in a bool.
@type username: str
@type password: str
+ @type environ: {str: str}
@rtype: bool
"""
return username in self.users and self.users[username] == password