添加 OIDC 认证支持,更新环境变量配置,重构 Docker Compose 文件,移除旧的 Dex 初始化脚本,优化用户模型,更新前端登录流程,支持通过 OIDC 登录。

This commit is contained in:
Yuzhong Zhang
2025-08-18 20:50:43 +08:00
parent fa80805bb1
commit 4da39f2d6a
12 changed files with 233 additions and 179 deletions
+6
View File
@@ -171,6 +171,11 @@ func setupRouter(store stores.Store) *chi.Mux {
r.Get("/callback", auth.HandleGitHubCallback)
})
r.Route("/auth/oidc", func(r chi.Router) {
r.Get("/login", auth.HandleOIDCLogin)
r.Get("/callback", auth.HandleOIDCCallback)
})
return r
}
@@ -307,6 +312,7 @@ func main() {
})
auth.Init()
auth.InitDex()
openai.Init()
store := stores.GetStore()