Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

hanchon-live/tutorial-fastapi-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Use Google Login (OAuth) with FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages