Skip to content

feat: auth vertical slices + user-registered domain event + template validation fixes#2

Merged
abdebek merged 3 commits into
devfrom
feat/checklist-automation-gaps
Mar 2, 2026
Merged

feat: auth vertical slices + user-registered domain event + template validation fixes#2
abdebek merged 3 commits into
devfrom
feat/checklist-automation-gaps

Conversation

@abdebek

@abdebek abdebek commented Mar 2, 2026

Copy link
Copy Markdown
Owner

feat: auth vertical slices + user-registered domain event + template validation fixes

Why

Improve SoC/SOLID and DDD boundaries in auth flows, and fix template validation issues across --all scenarios.

What changed

  • Refactored auth to vertical slices (one command + one handler per use case).
  • Removed centralized auth abstraction (IAuthenticationService / AuthenticationService).
  • Updated auth endpoints to:
    • dispatch via IMessageBus when messaging is enabled
    • call dedicated handlers directly when messaging is disabled
  • Added UserRegisteredEvent domain event and handler-driven email confirmation flow.
  • Added safe non-messaging fallback for registration confirmation email.
  • Added startup guard Database:EnsureCreated (default true) and test overrides.
  • Removed Serilog static bootstrap/finalizer pattern that caused test host freeze.
  • Hardened template conditions to avoid invalid file combinations.
  • Added durable-messaging-based exclusions for auth/rate-limit integration tests requiring external infra.

abdebek added 3 commits March 2, 2026 18:45
…ntroduce command handlers for user registration, password management, and email confirmation. Implement domain events for user registration and email confirmation. Update endpoints to use command handlers and messaging where applicable. Enhance integration tests for authentication flows and rate limiting.
…uration for improved clarity and maintainability
@abdebek abdebek marked this pull request as ready for review March 2, 2026 17:06
@abdebek abdebek merged commit b6b2c44 into dev Mar 2, 2026
1 check passed
@abdebek abdebek deleted the feat/checklist-automation-gaps branch March 11, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant