重构认证流程,合并 GitHub 和 OIDC 登录路由,更新回调 URL,简化环境变量配置,移除旧的 Dex 相关代码,增强代码可读性和维护性。更新文档以反映新的认证流程和环境变量设置。

This commit is contained in:
Yuzhong Zhang
2025-08-18 20:51:45 +08:00
parent aa8e9ed4d0
commit 2e368455ab
10 changed files with 394 additions and 402 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ services:
image: busybox:latest
ports:
- "5556:5556" # Dex
- "3002:3002" # Excalidraw
- "3004:3002" # Excalidraw
command: ["sleep", "infinity"]
networks:
- excalidraw-network
@@ -17,7 +17,7 @@ services:
volumes:
- ./config/dex.config.yaml:/etc/dex/config.yaml
environment:
- OIDC_REDIRECT_URL=${OIDC_REDIRECT_URL:-http://localhost:3002/auth/oidc/callback}
- OIDC_REDIRECT_URL=${OIDC_REDIRECT_URL:-http://localhost:3002/auth/callback}
- OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-excalidraw-secret}
- OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-excalidraw}
- OIDC_ISSUER=${OIDC_ISSUER:-http://localhost:5556}