Skip to content

Commit

Permalink
Fix impossible authentication flow
Browse files Browse the repository at this point in the history
  • Loading branch information
antonplagemann committed Dec 27, 2021
1 parent 134eb25 commit a34c324
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GMSync.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from helpers.MonicaHelper import Monica
from helpers.SyncHelper import Sync

VERSION = "v4.1.0"
VERSION = "v4.1.1"
LOG_FOLDER = "logs"
LOG_FILENAME = "sync.log"
DEFAULT_CONFIG_FILEPATH = join("helpers", ".env.default")
Expand Down
2 changes: 2 additions & 0 deletions Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ To configure the OAuth consent screen:
> Hint: If you get a `403 forbidden` during consent later, you may have entered the wrong email here.
12. Click `Save and Continue`. The "OAuth consent screen" appears.
13. Click `Back to Dashboard`.
14. Back at the "OAuth consent screen" screen, click `PUBLISH APP` and then `CONFIRM`.
> This step is necessary because when in "Testing"-status, Google limits the token lifetime to seven days. You don't need to complete the app verification process.
### Create an OAuth client ID credential

Expand Down
2 changes: 1 addition & 1 deletion helpers/GoogleHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __build_service(self) -> Resource:
creds_pickled = base64_token.read()
creds = pickle.loads(codecs.decode(creds_pickled.encode(), "base64"))
else:
raise ConfigError("Google token file not found!")
self.log.warning("Google token file not found!")
except UnicodeDecodeError:
# Maybe old pickling file, try to update
with open(self.token_file, "rb") as binary_token:
Expand Down

0 comments on commit a34c324

Please sign in to comment.