# fastapi-oauth2 **Repository Path**: zhaocongzheng/fastapi-oauth2 ## Basic Information - **Project Name**: fastapi-oauth2 - **Description**: 基于FastAPI框架的OAuth2授权服务端演示项目 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-13 - **Last Updated**: 2025-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目名称 > 基于FastAPI的Oauth2服务端demo ## 运行条件 * MySQL8 * Redis * Python3.12+ ## 运行说明 * 直接运行请修改config/database.py文件中的mysql和redis连接;后执行 python main.py * 若使用pyinstaller,打包完成后需要把statics文件复制到同级目录 * oauth2登录链接 http://localhost:8080/authorize?client_id=client_id&response_type=code&redirect_uri=你的第三方客户端链接