Trees Indices Help
Trac
Package trac :: Package web :: Module auth :: Class DigestAuthentication

Class DigestAuthentication

source code

 object --+ 
 | 
 HTTPAuthentication --+ 
 | 
PasswordFileAuthentication --+
 |
 DigestAuthentication

A simple HTTP digest authentication implementation (RFC 2617).
Instance Methods
__init__(self, htdigest, realm)
x.__init__(...) initializes x; see help(type(x)) for signature source code
load(self, filename)
Load account information from apache style htdigest files, only users from the specified realm are used source code
parse_auth_header(self, authorization) source code
send_auth_request(self, environ, start_response, stale='false')
Send a digest challange to the browser. source code
do_auth(self, environ, start_response) source code

Inherited from PasswordFileAuthentication : check_reload

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
MAX_NONCES = 100
Properties

Inherited from object: __class__

Method Details

__init__(self, htdigest, realm)
(Constructor)

source code
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

send_auth_request(self, environ, start_response, stale='false')

source code
Send a digest challange to the browser. Record used nonces to avoid replay attacks.

do_auth(self, environ, start_response)

source code
Overrides: HTTPAuthentication.do_auth

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /