The web.auth.manager() function has the following parameters and is used to create a AuthManager onject:
- 
- driver
 
- The 
Driver object.
 
- app
 
- The name of the current application
 
 
The AuthManager object returned by the manager() function and has the following methods and attributes:
- class AuthManager
 - 
Auth Manager for creating modifying and removing users and applications.
- 
Return 
True if there is an application named app, False otherwise.
 
- 
Adds an application named app.
 
- 
Removes the application named app.
 
- 
Return a list of application names.
 
- 
Return 
True if there is a user with the username username, False otherwise.
 
  | addUser( | 
  username, password[,firstname=''][,surname=''][email='']) | 
 
- 
Adds a user with the username username and password password to the system. You can optionally also specify the firstname, surname and email address of the user.
 
- 
Removes the user with the username username.
 
- 
Returns the firstname of the user username.
 
  | setFirstname( | 
  username, value) | 
 
- 
Sets the firstname of the user username to value.
 
- 
Returns the surname of the user username.
 
  | setSurname( | 
  username, value) | 
 
- 
Sets the surname of the user username to value.
 
- 
Returns the password of the user username.
 
  | setPassword( | 
  username, value) | 
 
- 
Sets the password of the user username to value.
 
- 
Returns the email address of the user username.
 
      
  | setEmail( | 
  username, value) | 
 
- 
Sets the email address of the user username to value.
 
- 
Return a list of usernames.
 
  | getAccessLevel( | 
  username, app) | 
 
- 
Returns the access level of the user username for the application named app.
 
  | setAccessLevel( | 
  username, app, level) | 
 
- 
Sets the access level of the user username for the application named app to level.
 
  | getAccessLevels( | 
  username) | 
 
- 
Returns a dictionary of application name, access level pairs for the user with the username username.
 
 
Documentation released on January 31, 2005.