mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2026-03-13 09:31:31 +08:00
19 lines
623 B
TOML
19 lines
623 B
TOML
[plugin]
|
|
summary = 'OAuth 2.0'
|
|
version = '0.0.11'
|
|
description = '支持 GitHub、Google 等社交平台登录'
|
|
author = 'wu-clan'
|
|
tags = ['auth']
|
|
database = ['mysql', 'postgresql']
|
|
|
|
[app]
|
|
router = ['v1']
|
|
|
|
[settings]
|
|
OAUTH2_STATE_REDIS_PREFIX = 'fba:oauth2:state'
|
|
OAUTH2_STATE_EXPIRE_SECONDS = 180 # 3 分钟
|
|
OAUTH2_GITHUB_REDIRECT_URI = 'http://127.0.0.1:8000/api/v1/oauth2/github/callback'
|
|
OAUTH2_GOOGLE_REDIRECT_URI = 'http://127.0.0.1:8000/api/v1/oauth2/google/callback'
|
|
OAUTH2_FRONTEND_LOGIN_REDIRECT_URI = 'http://localhost:5173/oauth2/callback'
|
|
OAUTH2_FRONTEND_BINDING_REDIRECT_URI = 'http://localhost:5173/profile'
|