Package cherrypy :: Package lib :: Module cptools :: Class SessionAuth
[hide private]
[frames] | no frames]

Class SessionAuth

source code

object --+
         |
        SessionAuth

Assert that the user is logged in.

Instance Methods [hide private]
 
check_username_and_password(self, username, password) source code
 
anonymous(self)
Provide a temporary user name for anonymous users.
source code
 
on_login(self, username) source code
 
on_logout(self, username) source code
 
on_check(self, username) source code
 
login_screen(self, from_page='..', username='', error_msg='') source code
 
do_login(self, username, password, from_page='..')
Login.
source code
 
do_logout(self, from_page='..')
Logout.
source code
 
do_check(self)
Assert username.
source code
 
run(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  session_key = 'username'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

do_login(self, username, password, from_page='..')

source code 
Login. May raise redirect, or return True if request handled.

do_logout(self, from_page='..')

source code 
Logout. May raise redirect, or return True if request handled.

do_check(self)

source code 
Assert username. May raise redirect, or return True if request handled.