Package WebStack :: Package Resources :: Module LoginRedirect :: Class LoginRedirectAuthenticator
[show private | hide private]
[frames | no frames]

Class LoginRedirectAuthenticator


An authenticator which verifies the credentials provided in a special login cookie.

Method Summary
  __init__(self, secret_key, cookie_name)
Initialise the authenticator with a 'secret_key' and an optional 'cookie_name'.
  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'.

Method Details

__init__(self, secret_key, cookie_name=None)
(Constructor)

Initialise the authenticator with a 'secret_key' and an optional 'cookie_name'.

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'.

Generated by Epydoc 2.1 on Thu Mar 1 00:37:14 2007 http://epydoc.sf.net