Skip to content
Snippets Groups Projects
Verified Commit 6912364e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: logout did not work

parent ddd2d8dc
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,7 @@ class CredentialsAuthenticator(AbstractAuthenticator): ...@@ -176,7 +176,7 @@ class CredentialsAuthenticator(AbstractAuthenticator):
super(CredentialsAuthenticator, self).__init__() super(CredentialsAuthenticator, self).__init__()
self._credentials_provider = credentials_provider self._credentials_provider = credentials_provider
self._connection = None self._connection = None
self._auth_token = None self.auth_token = None
def login(self): def login(self):
self._login() self._login()
...@@ -186,9 +186,9 @@ class CredentialsAuthenticator(AbstractAuthenticator): ...@@ -186,9 +186,9 @@ class CredentialsAuthenticator(AbstractAuthenticator):
def _logout(self): def _logout(self):
_LOGGER.debug("[LOGOUT]") _LOGGER.debug("[LOGOUT]")
if self._auth_token is not None: if self.auth_token is not None:
self._connection.request(method="DELETE", path="logout") self._connection.request(method="DELETE", path="logout")
self._auth_token = None self.auth_token = None
def _login(self): def _login(self):
username = self._credentials_provider.username username = self._credentials_provider.username
......
...@@ -53,6 +53,12 @@ class CLIError(Exception): ...@@ -53,6 +53,12 @@ class CLIError(Exception):
def runCheck(timeout, location): def runCheck(timeout, location):
""" Request the caosdb server to check the file system for consistency.
location == None means that the whole file system is being checked.
Otherwise only a the directory tree under location is being checked.
"""
if (timeout is not None): if (timeout is not None):
db.get_config().set("Connection", "timeout", str(100 + int(timeout))) db.get_config().set("Connection", "timeout", str(100 + int(timeout)))
files = db.Container().retrieve( files = db.Container().retrieve(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment