We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12d9c3 commit b028c41Copy full SHA for b028c41
cloudshell/sandbox_rest/sandbox_api.py
@@ -64,6 +64,10 @@ def refresh_auth_from_stored_credentials(self) -> None:
64
self.auth_token = self.get_token_with_credentials(self.username, self._password, self.domain)
65
self._auth_headers = self._build_auth_headers(self.auth_token)
66
67
+ def refresh_auth_from_token(self, token: str) -> None:
68
+ self.auth_token = token
69
+ self._auth_headers = self._build_auth_headers(token)
70
+
71
def invalidate_auth(self) -> None:
72
self.delete_token(self.auth_token)
73
self._auth_headers = None
0 commit comments