qm :: user :: Authenticator :: Class Authenticator
[hide private]
[frames] | no frames]

Class Authenticator

source code

Known Subclasses:

Base class for authentication classes.

An 'Authenticator' object is responsible for determining the authenticity of a user. The inputs to an authentication action depend on the mechanism with which the user communicates with the program -- for instance, a web request, command invocation, or email message.

Instance Methods [hide private]
 
AuthenticateDefaultUser(self)
Authenticate for the default user, if one is provided.
source code
 
AuthenticateWebRequest(self, request)
Authenticate a login web request.
source code
Method Details [hide private]

AuthenticateDefaultUser(self)

source code 

Authenticate for the default user, if one is provided.

returns -- The user ID of the default user.

AuthenticateWebRequest(self, request)

source code 

Authenticate a login web request.

'request' -- A web request containing the user's login information.

returns -- The user ID of the authenticated user.