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.
  AuthenticateDefaultUser(self)
Authenticate for the default user, if one is provided.
  AuthenticateWebRequest(self, request)
Authenticate a login web request.
  AuthenticatePassword(self, user_name, password)

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)

AuthenticatePassword(self, user_name, password)

source code