feat(oauth): 实现 OAuth 回调服务器与完整令牌管理功能

- 新增 OAuth 回调服务器模块,支持本地 HTTP 服务器处理授权回调
- 添加令牌撤销和令牌内省 API 端点
- 重构 OAuth 授权流程,增加 state 参数防止 CSRF 攻击
- 改进前端 OAuth 登录组件,适配新的回调机制
This commit is contained in:
Yukino_fox
2026-04-04 13:46:42 +08:00
parent c015ff3768
commit c2fe7af7d0
18 changed files with 535 additions and 2247 deletions
+4
View File
@@ -80,6 +80,10 @@ pub fn run() {
oauth_exchange_code,
oauth_get_user_info,
oauth_refresh_token,
oauth_revoke_token,
oauth_introspect_token,
oauth_start_callback_server,
oauth_stop_callback_server,
theme_list,
theme_current,
theme_set,