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

Class XmlDatabaseAuthenticator

source code

Authenticator --+
                |
               XmlDatabaseAuthenticator

An authenticator based on contents of the XML user database.

Instance Methods [hide private]
 
__init__(self, database)
Create a new authenticator.
source code
 
AuthenticateDefaultUser(self)
Authenticate for the default user, if one is provided.
source code
 
AuthenticateWebRequest(self, request)
Authenticate a login web request.
source code
 
AuthenticatePassword(self, user_name, password) source code
Method Details [hide private]

__init__(self, database)
(Constructor)

source code 

Create a new authenticator.

Authentication is performed based on information stored in 'XmlDatabase' instance 'database'.

AuthenticateDefaultUser(self)

source code 

Authenticate for the default user, if one is provided.

returns -- The user ID of the default user.

Overrides: Authenticator.AuthenticateDefaultUser
(inherited documentation)

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.

Overrides: Authenticator.AuthenticateWebRequest
(inherited documentation)