__init__(self,
login_url,
app_url,
resource,
authenticator,
anonymous_parameter_name=None,
anonymous_username='anonymous',
logout_parameter_name=None,
logout_url='/',
use_logout_redirect=1)
(Constructor)
Initialise the resource with a 'login_url', an 'app_url' where the
'resource' for the application being protected should be reachable, and
an 'authenticator'.
If the optional 'anonymous_parameter_name' is set, clients providing
a parameter of that name in the URL will not be authenticated, but then
such clients will get a predefined user identity associated with them,
configurable using the optional 'anonymous_username'.
If the optional 'logout_parameter_name' is set, clients providing a
parameter of that name in the URL will become logged out. After logging
out, clients are redirected to a location which can be configured by
the optional 'logout_url'.
If the optional 'use_logout_redirect' flag is set to 0, a
confirmation screen is given instead of redirecting the user to the
'logout_url'.
-
|