Skip to content

Commit

Permalink
remove automated local token save
Browse files Browse the repository at this point in the history
  • Loading branch information
ceesem committed Oct 25, 2024
1 parent a55a001 commit 763d701
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion caveclient/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ def local_server(self):
@local_server.setter
def local_server(self, new_val):
self._local_server = new_val
self._synchronize_local_server_file()

@property
def local_server_filepath(self):
Expand All @@ -361,6 +360,10 @@ def local_server_filepath(self):
else:
return None

def write_local_server_token(self):
"""Write the token secret into a file that can be used to authenticate with the local server (e.g. segmentation) from cloudvolume."""
self._synchronize_local_server_file()

def _synchronize_local_server_file(self):
if self.local_server:
if os.path.exists(self.local_server_filepath):
Expand Down

0 comments on commit 763d701

Please sign in to comment.