| Home | Trees | Indices | Help |
|
|---|
|
|
This module contains an AuthDigestMiddleware for
authenticating HTTP requests using the method described in RFC2617. The
credentials are to be provided using an AuthTokenGenerator
or a compatible instance. Furthermore digest authentication has to
preserve some state across requests, more specifically nonces. There are
three different NonceStoreBase implementations for different
needs. While the StatelessNonceStore has minimal
requirements it only prevents replay attacks in a limited way. If the
WSGI server uses threading or a single process the
MemoryNonceStore can be used. If that is not possible the
nonces can be stored in a DBAPI2 compatible database using
DBAPI2NonceStore.
|
|||
| StaleNonce | |||
|
AbstractTokenGenerator Interface class for generating authentication tokens for AuthDigestMiddleware. |
|||
|
AuthTokenGenerator Generates authentication tokens for AuthDigestMiddleware. |
|||
|
HtdigestTokenGenerator Reads authentication tokens for AuthDigestMiddleware from an apache htdigest file. |
|||
|
UpdatingHtdigestTokenGenerator Behaves like HtdigestTokenGenerator, checks the htdigest file for changes on each invocation. |
|||
|
NonceStoreBase Nonce storage interface. |
|||
|
StatelessNonceStore This is a stateless nonce storage that cannot check the usage count for a nonce and thus cannot protect against replay attacks. |
|||
|
MemoryNonceStore Simple in-memory mechanism to store nonces. |
|||
|
LazyDBAPI2Opener Connects to database on first request. |
|||
|
DBAPI2NonceStore A dbapi2-backed nonce store implementation suitable for usage with forking wsgi servers such as scgi.forkpool. |
|||
|
AuthDigestMiddleware Middleware partly implementing RFC2617. |
|||
|
|||
|
|||
| str |
|
||
str
>>> gen_rand_str() != gen_rand_str() True |
|
||
|
|||
| str |
|
||
| str |
|
||
|
|||
|
|||
sysrand = <random.SystemRandom object>
|
|||
__package__ =
|
|||
|
|||
|
Generates a string of random base64 characters.
|
internal
|
internal
Note: the RFC specifies which values must be quoted and which must not be quoted. |
internal method formatting a unix time to a fixed-length string
|
internal method for verifying the uri credential
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 10 15:01:50 2020 | http://epydoc.sourceforge.net |