Trees | Index | Help |
---|
Package WebStack :: Package Resources :: Module LoginRedirect :: Class LoginRedirectAuthenticator |
|
An authenticator which verifies the credentials provided in a special login cookie.
Method Summary | |
---|---|
Initialise the authenticator with a 'secret_key' and an optional 'cookie_name'. | |
Authenticate the originator of 'trans', updating the object if successful and returning 1 (true) if successful, 0 (false) otherwise. | |
Set an authentication token in 'trans' with the given 'username'. | |
Unset the authentication token in 'trans'. |
Method Details |
---|
__init__(self,
secret_key,
cookie_name=None)
|
authenticate(self, trans)Authenticate the originator of 'trans', updating the object if successful and returning 1 (true) if successful, 0 (false) otherwise. |
set_token(self, trans, username)Set an authentication token in 'trans' with the given 'username'. |
unset_token(self, trans)Unset the authentication token in 'trans'. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Mar 1 00:37:14 2007 | http://epydoc.sf.net |