You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
版本:0.1.2-rc.1(按 npm 产物里读到的实现描述,函数名照产物写的)。
场景:自己写的插件要在本机验证 web 侧行为(注入是否生效、页面版式对不对),需要以脚本方式访问 dsh web 的页面。纯 loopback,不涉及外部访问。
现在的样子:
dsh web authentication required; reopen the URL printed by dsh web.dsh web的启动输出里并没有这条 URL,也没有带 token 的形式可复制。dsh-client-connection的authorizeIndex是支持GET /?token=<launchToken>换 cookie 再 303 回/的,可是在这个安装里找不到任何把该 token 交给使用者或脚本的调用点(launchUrl没有引用)。这条通路写好了,但到不了使用者手里。isAuthenticated()把「没带 cookie / cookie 名不对 / 签名不过 / 已过期 / maxAge 超限 / authority 不等」全部塌成同一个 false,服务端不写日志。也就是说脚本侧只会看到同一个 401,六种原因在外壳上完全不可区分。想请求的很小:
理解 0.x 线上破坏性改动已经够多,不愿意为脚本场景再承诺一个 token 出口;但日志分类这条只帮排障,不承诺任何东西。
All reactions