viridius-1 / Fastapi-oauth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI and Google Login (OAuth)

This is an example following the tutorials:

Requirements:

  • Python3.6+

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

About


Languages

Language:Python 99.7%Language:PowerShell 0.3%Language:Batchfile 0.0%