HTTP_DIGEST_AUTH = "Digest"
# Not exactly as described in RFC2616, section 2.2, but good enough
-_NOQUOTE = re.compile(r"^[-_a-z0-9]$", re.I)
+_NOQUOTE = re.compile(r"^[-_a-z0-9]+$", re.I)
def _FormatAuthHeader(scheme, params):
return self.Authenticate(req, user, password)
- def AuthenticateBasic(self, req, user, password):
+ def Authenticate(self, req, user, password):
"""Checks the password for a user.
This function MUST be overriden by a subclass.