copilot-swe-agent[bot]
2f55294b58
fix: 修复演练场输入密码后提示未授权访问的问题
...
根本原因:框架 RouterHandlerFactory 未注册 SessionHandler,
导致 ctx.session() 始终返回 null。登录时密码校验通过但认证
状态被静默丢弃,后续所有请求均返回"未授权访问"。
修复方案:将 Session 鉴权改为 Token(Bearer)鉴权:
- PlaygroundConfig: 新增 generateToken()/validateToken(),
使用 SecureRandom 生成密码学安全 Token,并在生成时
清理过期 Token 防止内存泄漏
- PlaygroundApi: login() 返回 Token;checkAuth() 从
Authorization 请求头中读取并校验 Token
- playgroundApi.js: 添加请求拦截器自动携带 Token;
login() 从响应中提取并保存 Token 到 localStorage
- Playground.vue: 后端报告未认证时同步清除 playground_token
Agent-Logs-Url: https://github.com/qaiu/netdisk-fast-download/sessions/52144d13-cd49-4a3d-b279-9b8d6cbad757
Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com >
2026-04-23 01:22:09 +00:00
q
b58b3658b5
更新Playground和JsHttpClient相关功能,整理文档结构
2026-01-06 00:00:37 +08:00
q
343c017c79
fixed. 演练场静态打包问题
2026-01-04 09:29:20 +08:00
q
047a8eab89
更新代码和文档
2026-01-03 21:11:04 +08:00
q
ce1c4ee669
Fix playground bugs and remove TypeScript compiler
...
- Fix BUG1: JavaScript timeout with proper thread interruption using ScheduledExecutorService
- Fix BUG2: Add URL regex validation before execution in playground test API
- Fix BUG3: Register published parsers to CustomParserRegistry on save/update/delete
- Remove TypeScript compiler functionality (tsCompiler.js, dependencies, UI)
- Add password authentication for playground access
- Add mobile responsive layout support
- Load playground parsers on application startup
2026-01-02 19:24:47 +08:00
copilot-swe-agent[bot]
3775cd0259
Address code review feedback: protect types.js endpoint and improve code readability
...
Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com >
2025-12-07 05:27:07 +00:00
copilot-swe-agent[bot]
6305d805dd
Add playground loading animation, password auth, and mobile layout support
...
Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com >
2025-12-07 05:20:06 +00:00
copilot-swe-agent[bot]
66ba8b7ee8
Address code review feedback - improve code quality
...
Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com >
2025-12-07 04:52:22 +00:00
copilot-swe-agent[bot]
2edf235941
Complete TypeScript compiler integration with examples and documentation
...
Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com >
2025-12-07 04:48:38 +00:00
copilot-swe-agent[bot]
57ef723368
Add TypeScript compiler integration - core implementation
...
Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com >
2025-12-07 04:43:36 +00:00
q
f82267f8a7
js演练场漏洞修复
2025-11-30 02:07:56 +08:00
q
e74d5ea97e
js演练场
2025-11-29 03:41:51 +08:00