A demo application for fastapi-oauth20 library, demonstrating OAuth 2.0 integration with multiple providers.
- Install dependencies:
uv sync- Create
.envfile:
cp .env.example .env-
Configure OAuth credentials in
.env: -
Configure callback URLs in your OAuth applications:
http://localhost:8000/api/v1/oauth2/{provider}/callbackWhere
{provider}is:github,google,feishu,gitee,linux-do,oschina -
Run the application:
python main.py