def salt_auth_tool():
 if ('token' not in cherrypy.session):
  raise cherrypy.HTTPError(401)
 cherrypy.response.headers['Cache-Control'] = 'private'

def salt_auth_tool ( ) : if ( 'token' not in cherrypy . session ) : raise cherrypy . HTTPError ( 401 ) cherrypy . response . headers [ 'Cache-Control' ] = 'private'
redirect all unauthenticated requests to the login page .