summaryrefslogtreecommitdiff
path: root/wsgitools/internal.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2011-11-26 18:38:35 +0100
committerHelmut Grohne <helmut@subdivi.de>2011-11-26 18:38:35 +0100
commite71a708d06b5498c6c527a4ec263f3b99e350d32 (patch)
tree857e3ef3c0f4fa0b74e21aff6c776536927bf68d /wsgitools/internal.py
parent768ba2f1b8ca7c6d9e392612098b91508b49e792 (diff)
downloadwsgitools-e71a708d06b5498c6c527a4ec263f3b99e350d32.tar.gz
broaden AuthDigestMiddleware.authorization_required
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.
Diffstat (limited to 'wsgitools/internal.py')
0 files changed, 0 insertions, 0 deletions