SunWuyuan
bb61e6e6f5
feat: Add AutoAuth functionality and enhance Apps API
...
- Introduced AutoAuth model to manage automatic authorization configurations for devices.
- Added new endpoint to obtain token via namespace and password for automatic authorization.
- Implemented functionality to set student names for student-type tokens.
- Enhanced AppInstall model to include deviceType and isReadOnly fields.
- Updated device creation to allow custom namespaces and ensure uniqueness.
- Added routes for managing AutoAuth configurations, including CRUD operations.
- Implemented checks for read-only tokens in KV operations.
- Created detailed API documentation for AutoAuth and new Apps API endpoints.
- Added migration scripts to accommodate new database schema changes.
2025-11-01 19:31:46 +08:00
SunWuyuan
3c64226562
移除账户模型中的refreshToken字段,并将accessToken字段修改为可选
2025-10-07 20:17:11 +08:00
SunWuyuan
6c05d71506
添加智教联盟登录
2025-10-07 14:46:53 +08:00
SunWuyuan
aec482cbcb
cskv
2025-10-06 10:49:48 +08:00
SunWuyuan
7b1e224f70
继续一大堆功能实现
2025-10-03 21:22:18 +08:00
SunWuyuan
521522c1d2
更新到一半
2025-10-02 12:07:50 +08:00
SunWuyuan
0e490e5def
Refactor Dockerfile to include build arguments for database type and set production environment. Update npm commands for dependency installation and Prisma client generation. Modify GitHub Actions workflow to support multiple database types in Docker image builds. Adjust Express server port and enhance logging in www.js. Update Prisma schema to use SQLite and clean up model definitions. Revise routes in kv.js to improve key-value management functionality and update front-end fetch calls in index.ejs for batch import and UUID generation.
2025-05-24 14:57:57 +08:00
SunWuyuan
cf646d619f
Add bcrypt and js-base64 dependencies in package.json and pnpm-lock.yaml. Enhance authentication middleware in auth.js with password hint functionality and improve error handling. Update device management routes in kv.js to support password hint retrieval and modification, ensuring better security and user experience.
2025-05-18 14:33:16 +08:00
SunWuyuan
b312756d5f
Refactor authentication middleware in auth.js to improve site key validation and device access control. Update access types to use an enum in the Prisma schema. Enhance rate limiting in rateLimiter.js for API and write operations. Modify routes in kv.js to support new access types and password management features, including a new endpoint for password removal.
2025-05-18 10:54:41 +08:00
SunWuyuan
3bff254a22
Implement device authentication middleware and Prisma model for device management. Update routes to include device info retrieval and password management, enhancing security and functionality.
2025-05-17 20:02:55 +08:00
SunWuyuan
1b05d73405
Remove unused homework and config models from Prisma schema; update home page rendering in index.js to simplify response.
2025-05-11 07:58:29 +08:00
SunWuyuan
eeacc317a9
将 app.js 重构为 ES 模块,新增 KV 存储功能,并实现请求超时中间件。更新 package.json 中的依赖项并移除未使用的路由。完善 README,补充项目特性与安装使用说明。
2025-05-10 13:47:02 +08:00
SunWuyuan
2d055f6400
1
2025-03-02 16:36:01 +08:00
SunWuyuan
f0f9568eb6
1
2025-02-23 14:36:22 +08:00
1a03634abf
1
2024-11-24 16:52:52 +08:00
8ad86c103f
first
2024-11-17 16:16:16 +08:00