Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 764 Bytes

File metadata and controls

40 lines (25 loc) · 764 Bytes

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