(self)
Updates the task with authorization permission.
Updates the task with authorization permission.
Updates the task with authorization permission .
def _update_task_auth(self):
        # type: () -> None
        '''
        Updates the task with authorization permission.
        '''
        if self._last_auth is AUTH_STATES.AUTHORIZED:
            self.send_message('good_auth')
            self.pending_task.authenticated = True
        else:
            self.send_message('bad_auth')
            self.reset_auth()
            self.pending_task.authenticated = False
def _update_task_auth ( self ) : # type: () -> None if self . _last_auth is AUTH_STATES . AUTHORIZED : self . send_message ( 'good_auth' ) self . pending_task . authenticated = True else : self . send_message ( 'bad_auth' ) self . reset_auth ( ) self . pending_task . authenticated = False