summaryrefslogtreecommitdiff
path: root/wsgitools/digest.py
AgeCommit message (Collapse)Author
2011-11-26broaden AuthDigestMiddleware.authorization_requiredHelmut Grohne
The interface of this internal function has changed in a backwards incompatible way. The last parameter is no longer the bool stale, but an exception now, which encodes more information than the previous bool. This was made possible by the previous commit. This exception can then be used by the new method www_authenticate to generate a suitable WWW-Authenticate header. The idea behind this change is that at some point it should be possible to override authorization_required (still internal now) to evaluate what condition lead to the failure and to generate custom error pages.
2011-11-02improved extensibility of error handling in digest.pyHelmut Grohne
Instead of randomly raising KeyErrors or ValueErrors we can now see more meaningful ProtocolViolations and StaleNonces. Note that this change should be invisible to users who do not mess with internals.
2011-11-01digest: support gentoken without algoHelmut Grohne
2011-07-25fixed epydoc markup errors in digest moduleHelmut Grohne
2011-07-25added more nonce store test cases to digest moduleHelmut Grohne
2011-07-24add more assertions for types of passed parametersHelmut Grohne
2011-07-24removed execute bit from wsgitools/digest.pyHelmut Grohne
It probably gained this bit later than shown in history due to darcs not tracking execute bits. The bit was probably added for doc tests which moved to a designated file later.
2011-06-01reworked digest.AuthTokenGeneratorHelmut Grohne
AuthTokenGenerator gained a base class AbstractTokenGenerator. This class provides an additional method check_password implementing the interface required by BasicAuthMiddleware. In addition AbstractTokenGenerator gained two subclasses HtdigestTokenGenerator and UpdatingHtdigestTokenGenerator. They both read authentication information from a apache htdigest file. The latter also checks the file for updates.
2011-01-12improved AuthDigestMiddleware doc stringHelmut Grohne
2010-09-02improved digest documentationHelmut Grohne
2010-01-31fix shared default argument to parse_digest_responseHelmut Grohne
2009-07-04two new digest doctestsHelmut Grohne
2009-07-04more docstring/epydoc improvementsHelmut Grohne
2009-06-24fixed an epydoc comment in digestHelmut Grohne
2009-06-24added doctest for DBAPI2NonceStoreHelmut Grohne
2009-06-24added dbapi2 (sql) backed noncestore! yeah :-)Helmut Grohne
2009-06-24documented potential overflow in digestHelmut Grohne
2009-06-24auth_response should not return ValueError in digestHelmut Grohne
2009-03-29improve digest module (killed isnonce method)Helmut Grohne
Prior to this change the digest module would check whether a nonce looks like a nonce, verify the response and then verify the nonce. This left a bit more room for brute forcing passwords, as the same nonce could be used in arbitrary many tries and a stale response would indicate an authentication success. Now authentication is only tried for valid nonces. This also makes the NonceStoreBase.isnonce method superfluous.
2009-03-29get rid of old builtin longHelmut Grohne
Even Py2.4 can handle large parameters to int, so long is not needed.
2009-03-29quite some changes for py3Helmut Grohne
These changes introduce some compatibility code. They don't make wsgitools usable with Python 3.0, but they also don't break compatibility with Python 2.5.
2009-03-29make digest.gen_rand_str forward compatible (py3)Helmut Grohne
2009-02-27extract common code to gen_rand_str in digestHelmut Grohne
2009-02-27added more doctests for digest moduleHelmut Grohne
2009-02-27fixed bug in digest.MemoryNonceStore.checknonceHelmut Grohne
2008-10-14update docstring: DigestAuth now partly works with forkpoolHelmut Grohne
2008-10-14small digest cleanupHelmut Grohne
2008-10-14extended digest.NonceStoreBase interfaceHelmut Grohne
The methods now take an optional last parameter called ident. It can be used to bind nonces to specific uses within one NonceStore.
2008-10-14added epydoc markup to doc stringsHelmut Grohne
2008-09-22improve commentsHelmut Grohne
2008-09-22improve digest.NonceStoreBase.checknonce interfaceHelmut Grohne
2008-09-21digest: create a generic nonce storage interfaceHelmut Grohne
2008-09-20added some examples/doctests for digest.parse_digest_responseHelmut Grohne
2008-07-12fix some comments and epydocify themHelmut Grohne
2008-03-27epydoc updateHelmut Grohne
2008-03-10use hashlib.md5 instead of md5.md5 where possibleHelmut Grohne
2008-02-28refactored docstrings for epydocHelmut Grohne
2007-05-08rearrange nonce checking to comply with RFC2617 in wsgitools.digestHelmut Grohne
2007-05-08replaced nonce handling in wsgitools.digestHelmut Grohne
2007-05-08added support for digest auth (RFC2617)Helmut Grohne