xbzbing/dsh-auth-gateway10

dsh-auth-gateway

Password login gateway plugin for dsh web: auto-generated initial password with forced onboarding, login, password change with real request interception, and OTP two-factor authentication.

包名
dsh-auth-gateway
版本
0.6.0
许可证
MIT
最近更新
2026年9月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xbzbing/dsh-auth-gateway

配置

以下字段为 bundle patch / profile patch 中 dsh-auth-gateway 行的 config(Standard Schema 校验):

字段默认含义
listenHost / listenPort0.0.0.0 / 3080网关对外监听地址与端口
upstreamHost / upstreamPort127.0.0.1 / 3081内部 webserver 地址与端口
basePath/反向代理子路径前缀(如 /dsh);默认 /(根路径)。字符集限 A-Za-z0-9._~/-,拒绝 ..//、引号、空白、尖括号(该值会内嵌进页面脚本与链接,故按白名单校验;不合规配置会在加载时被拒绝)。子路径部署时在部署方 profile patch 中配置,不随插件分发
minPasswordLength8密码最小长度(4–128)
requireMixedCase / requireSpecialtrue / true密码复杂度:大小写混合或特殊字符二选一满足
maxLoginFailures / lockMinutes5 / 5密码失败锁定阈值与时长
maxGlobalAuthAttemptsPerMinute60全局登录尝试速率上限
maxOtpAttemptsPerMinute10单来源 OTP/备份码验证速率上限
otpEnabled(已废弃)false不再作为启用开关——2FA 由用户登录后在「认证设置」中绑定激活;字段保留仅为兼容旧配置
otpRequiredfalse2FA 激活后强制每次登录验证(无需任何配置)
otpIssuer / otpPeriod / otpDigits / otpWindowdsh-auth-gateway / 30 / 6 / 1TOTP 参数(显示名、周期、位数、窗口)
backupCodeCount / backupCodeLength10 / 8备份代码数量与长度