From 8456020f53b563a16edd87a49de31607acde720c Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 12 Jan 2011 21:33:37 +0100 Subject: DictAuthChecker.__call__ should take an environ as this is tried by BasicAuthMiddleware first. --- wsgitools/middlewares.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3