Skip to content

fastapi-practices/fastapi-oauth20-demo

Repository files navigation

FastAPI OAuth 2.0 Demo

A demo application for fastapi-oauth20 library, demonstrating OAuth 2.0 integration with multiple providers.

Quick Start

  1. Install dependencies:
uv sync
  1. Create .env file:
cp .env.example .env
  1. Configure OAuth credentials in .env:

  2. Configure callback URLs in your OAuth applications:

    http://localhost:8000/api/v1/oauth2/{provider}/callback
    

    Where {provider} is: github, google, feishu, gitee, linux-do, oschina

  3. Run the application:

    python main.py
  4. Open http://localhost:8000

License

MIT

About

fastapi oauth20 demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published