More implementation for getting remote clusters, add some TODOs

This commit is contained in:
ChrisTerBeke 2018-11-19 23:25:54 +01:00
parent ca1c5fb48c
commit 04cc6193d6
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263
2 changed files with 61 additions and 7 deletions

View file

@ -60,6 +60,7 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice):
# TODO: show message to user to sign in
self.setAuthenticationState(AuthState.NotAuthenticated)
else:
# TODO: not execute call at all when not signed in?
self.setAuthenticationState(AuthState.Authenticated)
request.setRawHeader(b"Authorization", "Bearer {}".format(self._account.accessToken).encode())