Files
HAOVP/docs/video-auth模块目录架构、功能及接口文档.md
T
Toys-A 30c17f01e9 docs: Refresh deployment and API documentation
- Align deployment guidance with the current three-node Compose topology
- Document the current frontend architecture and development workflow
- Replace the stale API list with a controller-based route index
2026-08-18 23:37:49 +08:00

1.2 KiB

video-auth 模块

认证服务端口为 9001。当前实现使用 Spring Security、JWT 和 Redis 管理用户认证状态;POM 同时引入 OAuth2 相关依赖,但当前前端认证流程以项目的登录、Access Token 和 Refresh Token 接口为准。

当前功能

  • 用户注册、登录、验证码、退出登录、获取当前用户与用户名查询
  • Access Token 与 Refresh Token 签发/刷新,Redis 保存并清理令牌索引
  • 管理用途的登录统计、账户锁定/解锁与密码重置
  • 通过 Feign 与用户服务协作完成注册后的资料初始化等流程

路由前缀

Controller 前缀 用途
AuthController /auth 用户认证与令牌操作
AdminAuthController /auth/admin 认证侧管理操作

完整请求方法和参数以两个 Controller 的 Spring MVC 注解及对应 DTO 为准。所有业务请求应经由网关 9000 访问,不要在前端直连 9001。

配置

服务从 Nacos 加载公共、Redis 和 video-auth.yaml 配置。JWT 密钥、过期时间、Nacos 认证和数据库/Redis 凭据均从环境变量或 Nacos 注入,文档不保留任何真实或默认生产值。