Flask implementation of the Hive API v2 OAuth 2.0 Authorization Code Flow with PKCE.
Python 3.10+
cd examples/python
cp .env.example .envFill in your Hive OAuth credentials in .env.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtIn one terminal, start the OAuth server:
python server/app.pyIn another terminal, serve the UI:
python -m http.server 3000 --directory uiOpen http://localhost:3000.
Register the following in your Hive OAuth Application:
http://localhost:4000/callback