Example #1
0
    def _register(self, manager):
        Module._register(self, manager)
        self._registered_interfaces = {}   
        self.register_interface(self, self.authenticate, {'auth':False, \
                                                          'include_user':True})
        self.register_interface(self, self.challenge_response, {'auth':False, \
                                                        'include_user':True})

        # sessions - temporary sessions for all authenticated controllers
        self.sessions = {}
        self.session_cleanup = reactor.callLater(20, self.__clean_sessions)
 def _register(self, manager):
     Module._register(self, manager)
     
     # register authentication functions.
     self.register_interface(self, self.authenticate, auth=False, \
                                                       include_user=True)
     self.register_interface(self, self.challenge_response, auth=False, \
                                                     include_user=True)
     
     # sessions - temporary sessions for all authenticated controllers
     self.session_cleanup = reactor.callLater(20, self._clean_sessions)