mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-06-05 06:32:56 +00:00
添加 OIDC 认证支持,更新环境变量配置,重构 Docker Compose 文件,移除旧的 Dex 初始化脚本,优化用户模型,更新前端登录流程,支持通过 OIDC 登录。
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user