platypush/platypush/plugins/google
Fabio Manganiello e022712b7b [Google] Updated authorization flow for Google plugins.
The new authorization flow also requires the user to input a code
returned on the browser's authorization page.

Since the Google authentication libraries seem to use a simple `input()`
to read this code, things are likely to fail quite badly if Platypush is
run in non-interactive mode - e.g. through a systemd service or in a
Docker container.

Thus we need to go with Google's automatic flow only if `DISPLAY` or
`BROWSER` are set (thus the interactive flow can proceed), and throw an
`AssertionError` with the command to execute if no display/browser are
detected.
2024-01-18 23:31:27 +00:00
..
calendar [Google] Updated documentation of Google plugins. 2024-01-18 23:31:27 +00:00
drive [Google] Updated documentation of Google plugins. 2024-01-18 23:31:27 +00:00
fit [Google] Updated documentation of Google plugins. 2024-01-18 23:31:27 +00:00
mail [Google] Updated documentation of Google plugins. 2024-01-18 23:31:27 +00:00
maps Several improvements for the Google integrations. 2023-10-01 15:37:20 +02:00
pubsub Several improvements for the Google integrations. 2023-10-01 15:37:20 +02:00
translate Several improvements for the Google integrations. 2023-10-01 15:37:20 +02:00
__init__.py [Google] Updated authorization flow for Google plugins. 2024-01-18 23:31:27 +00:00
credentials.py [Google] Updated authorization flow for Google plugins. 2024-01-18 23:31:27 +00:00