Package wsgitools :: Module middlewares :: Class DictAuthChecker
[hide private]
[frames] | no frames]

Class DictAuthChecker

source code

Verifies usernames and passwords by looking them up in a dict.

Instance Methods [hide private]
 
__init__(self, users) source code
bool
__call__(self, username, password)
check_function interface taking username and password and resulting in a bool.
source code
Method Details [hide private]

__init__(self, users)
(Constructor)

source code 
Parameters:
  • users ({str: str}) - is a dict mapping usernames to password.

__call__(self, username, password)
(Call operator)

source code 

check_function interface taking username and password and resulting in a bool.

Parameters:
  • username (str)
  • password (str)
Returns: bool