A simple Flask app that forwards Google Oauth requests from the Panels electron app. This keeps the Oauth client ID and secret secure on a server, where it can't be unpacked or inspected.
It consists of a few endpoints:
/auth
which starts the Oauth exchange/callback
which is redirected to after successful exchange, and listened for in the Electron app/logout
which clears session on the server
To run:
- Build the virtual env
- Run
gunicorn panels_oauth:app
To deploy:
- Configure a Dokku git remote
git remote add dokku dokku@<machine hostname>:<app name>
- Run
git push dokku master