添加 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
+28
View File
@@ -0,0 +1,28 @@
issuer: http://localhost:5556
storage:
type: memory
web:
http: 0.0.0.0:5556
allowedOrigins: ["*"]
logger:
level: debug
format: text
enablePasswordDB: true
staticClients:
- id: excalidraw
redirectURIs:
- {{ .Env.OIDC_REDIRECT_URL }}
name: Excalidraw
public: true
secret: excalidraw-secret
staticPasswords:
- email: {{ .Env.ADMIN_EMAIL }}
hash: {{ .Env.ADMIN_PASSWORD_HASH }}
username: {{ .Env.ADMIN_USERNAME }}
userID: {{ .Env.ADMIN_USER_ID }}