The AuthAdmin
object is aliased as web.auth.admin
and should be used as web.auth.admin
.
driver, [autoCreate=0], [encryption=None], [**driverParams]) |
'database'
is allowed
True
the necessary tables will be created (removing any existing tables) if any of the tables are missing and a user named john
with a password bananas
will be set up with an access level of 1
to the application app
. This is designed for easy testing of the module.
None
or 'md5'
. Warning you cannot change the encryption method once a user is added without resetting the password.
True
if the tables and user were autoCreated, False
otherwise.
) |
True
if the environment is correctly setup, False
otherwise. In the case of the database driver this method simply checks that all the necessary tables exist.
) |
AuthError
is raised.
[ignoreErrors=False]) |
AuthError
is raised unless ignoreErrors is True
) |
app) |
True
if there is an application named app, False
otherwise.
app) |
app,[force=0]) |
username) |
AuthUser
object for the user specified.
[group=[]], [active=None], [app=None], [role=None]) |
username) |
True
if there is a user with the username username, False
otherwise.
username, password[,firstname=''][,surname=''][email=''], [active=1], [group=None]) |
username) |
username, [app=None]) |
None
, a dictionary of application name, access level pairs is returned.
username, app, level) |
[username=None], [app=None]) |
role) |
True
if there is a role named role, False
otherwise.
role) |
AuthError
is raised.
role, [force=0]) |
username, app, role) |
username, app, role) |
) |
group) |
True
if there is a group named group, False
otherwise. None
is a valid group since a user can have no group.
group) |
AuthError
is raised.
group, [force=0]) |