https://github.com/fastapi-practices/fastapi-oauth20
为 fastapi_best_architecture 打造的 OAuth 2.0,预想成为通用 SDK!
https://github.com/fastapi-practices/fastapi-oauth20
fastapi fastapi-oauth2 oauth2
Last synced: about 2 months ago
JSON representation
为 fastapi_best_architecture 打造的 OAuth 2.0,预想成为通用 SDK!
- Host: GitHub
- URL: https://github.com/fastapi-practices/fastapi-oauth20
- Owner: fastapi-practices
- License: mit
- Created: 2024-01-24T02:36:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T12:11:41.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T04:07:49.794Z (over 1 year ago)
- Topics: fastapi, fastapi-oauth2, oauth2
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI OAuth 2.0

[](https://github.com/wu-clan/httpfpt/blob/master/LICENSE)

[](https://github.com/astral-sh/ruff)
在 FastAPI 中异步授权 OAuth 2.0 客户端
我们的目标是集成多个 CN 第三方客户端
## Download
```shell
pip install fastapi_oauth20
```
## Docs
[fastapi oauth20](https://fastapi-practices.github.io/fastapi-oauth20/)
## Demo
查看完整的示例项目:[fastapi-oauth20-demo](https://github.com/fastapi-practices/fastapi-oauth20-demo)
该示例项目展示了如何在实际应用中使用 fastapi-oauth20,包括:
- 多个 OAuth2 提供商的集成示例
- 完整的授权流程实现
- 用户信息获取和处理
- 错误处理最佳实践