FastAPI and Google Login (OAuth)
This is an example following the tutorials:
Requirements:
How to run the example:
- Create a virtualenv
python3 -m venv .venv
- Activate the virtualenv
. .venv/bin/activate
- Install the requirements
pip install -r requirements.txt
- Set up the env vars:
- export GOOGLE_CLIENT_ID=...
- export GOOGLE_CLIENT_SECRET=...
- export SECRET_KEY=...
- export API_SECRET_KEY=...
- Run the app:
- Guide 1:
python run.py
- Guide 2 and 3:
python main.py