rwadurian/backend/services/authorization-service/src
hailin 50f960ecea fix(authorization): allow admin tokens without accountSequence field
Admin JWT tokens from identity-service don't include the accountSequence
field (only userId, email, role, type). This caused a 400 error with
message "管理员账户序列号不能为空" when admins tried to grant authorizations.

Changes:
- Update AdminUserId value object to make accountSequence optional
- Use 'ADMIN' as default value when accountSequence is not provided
- Update all controller methods to handle optional accountSequence

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 22:57:56 -08:00
..
api fix(authorization): allow admin tokens without accountSequence field 2026-01-03 22:57:56 -08:00
application feat(authorization): add admin authorization management API and real data integration 2026-01-03 18:50:10 -08:00
config refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
domain fix(authorization): allow admin tokens without accountSequence field 2026-01-03 22:57:56 -08:00
infrastructure fix(authorization-service): 使用 accountSequence 替代 userId 查询团队统计 2025-12-25 22:51:32 -08:00
shared refactor!: 重构账户序列号格式 (BREAKING CHANGE) 2025-12-12 09:11:18 -08:00
app.module.ts chore(authorization-service): 移除已执行完成的 OTP 修复任务 2025-12-25 23:06:32 -08:00
main.ts fix(authorization): add Kafka microservice for @EventPattern to work 2025-12-10 10:08:55 -08:00