Skip to content

认证与鉴权

后台

后台认证相关代码位于:

  • app/Domain/Auth
  • app/Application/Admin/Permission/AppAuthCommandService.php
  • app/Application/Admin/Permission/AppAuthQueryService.php
  • app/Interface/Admin/Controller/PassportController.php

权限体系相关代码位于:

  • app/Domain/Permission
  • web/src/directives/permission

前台

前台认证相关代码位于:

  • app/Application/Api/Auth
  • app/Interface/Api/Controller/V1/Auth
  • app/Domain/Member/Api/Command/DomainApiMemberAuthCommandService.php
  • app/Domain/Member/Api/Command/DomainApiMemberPasswordAuthService.php

配置

相关配置可见:

  • config/autoload/jwt.php
  • config/autoload/api_signature.php
  • .env.example 中的 JWT_SECRET

小程序登录页

前端页面位于:

  • miniprogram/src/pages/auth/login
  • miniprogram/src/pages/auth/register
  • miniprogram/src/pages/auth/forgot-password

文档内容仅描述当前仓库中已经存在的实现