How foll-project/foll_microservicio-iam works
This is an IAM microservice for user registration, login, profile/context lookup, and account-deletion requests. The main workflow enters through REST controllers, uses application services to validate credentials and perform domain operations, and persists users and deletion state. Deletion requests also enter an outbox-driven integration flow; the service publishes events through RabbitMQ and registers a consumer for completion events. The graph reflects relationships shown in sampled source and the source index; several registered adapters and the consumer implementation were not excerpted, so their internal behavior is not detailed.
Main entry points: UserCommandService.cs User commands · UserQueryService.cs User queries · AuthenticationController.cs Authentication API · AppDbContext.cs IAM database
Components 18
REST interface
- Authentication API
IAM/Interfaces/REST/AuthenticationController.cs - Internal user APIs
IAM/Interfaces/Internal
Application services
- User commands
IAM/Application/Internal/CommandServices/UserCommandService.cs - User queries
IAM/Application/Internal/QueryServices/UserQueryService.cs - Password hashing
IAM/Infrastructure/Hashing/BcryptHashingService.cs - JWT tokens
IAM/Infrastructure/Tokens/JwtTokenService.cs
IAM domain
- User account
IAM/Domain/Model/Entities/User.cs - Deletion request
IAM/Domain/Model/Entities/AccountDeletionRequest.cs - Deletion event
IAM/Application/IntegrationEvents/AccountDeletionRequestedIntegrationEvent.cs
Persistence and messaging
- User repository
IAM/Infrastructure/Persistence/EFC/Repositories/UserRepository.cs - IAM database
Shared/Infrastructure/Persistence/EFC/Configuration/AppDbContext.cs - Outbox event staging
IAM/Infrastructure/Messaging/Outbox/OutboxUserEventService.cs - Outbox dispatcher
IAM/Infrastructure/Messaging/Outbox/OutboxPublisherBackgroundService.cs - Integration publisher
IAM/Infrastructure/Messaging/RabbitMq/RabbitMqIntegrationEventPublisher.cs - RabbitMQ connection
IAM/Infrastructure/Messaging/RabbitMq/RabbitMqConnection.cs - Deletion completion consumer
Shared/Infrastructure/Messaging
Other components
- API client
- RabbitMQ broker
Connections 17
- API client → Authentication API: sends requests
IAM/Interfaces/REST/AuthenticationController.cs - Authentication API → User commands: handles commands
IAM/Interfaces/REST/AuthenticationController.cs - Authentication API → User queries: handles queries
IAM/Interfaces/REST/AuthenticationController.cs - Internal user APIs → User queries: queries users
IAM/Interfaces/Internal/NotificationRecipientController.cs - User commands → User repository: reads and writes
IAM/Application/Internal/CommandServices/UserCommandService.cs - User queries → User repository: reads users
IAM/Application/Internal/QueryServices/UserQueryService.cs - User commands → Password hashing: verifies and hashes
IAM/Application/Internal/CommandServices/UserCommandService.cs - User queries → Password hashing: verifies password
IAM/Application/Internal/QueryServices/UserQueryService.cs - User queries → JWT tokens: generates token
IAM/Application/Internal/QueryServices/UserQueryService.cs - User commands → Deletion request: creates request
IAM/Application/Internal/CommandServices/UserCommandService.cs - User commands → Outbox event staging: stages event
IAM/Application/Internal/CommandServices/UserCommandService.cs - Outbox event staging → IAM database: stores outbox message
IAM/Infrastructure/Messaging/Outbox/OutboxUserEventService.cs - Outbox dispatcher → IAM database: loads and updates
IAM/Infrastructure/Messaging/Outbox/OutboxPublisherBackgroundService.cs - Outbox dispatcher → Integration publisher: publishes events
IAM/Infrastructure/Messaging/Outbox/OutboxPublisherBackgroundService.cs - Integration publisher → RabbitMQ broker: sends events
- RabbitMQ connection → RabbitMQ broker: connects to
- Deletion completion consumer → IAM database: updates completion state
Shared/Infrastructure/Messaging/IntegrationEventHandler.cs