How asp-net-core-based-projects/awesomeaspnetcore works
This is an ASP.NET Core and React starter whose implemented product workflow is authentication: a user submits credentials, the API delegates login or refresh-token exchange to a use case, and the backend returns tokens for the client. The graph also retains the documented Identity/JWT persistence, structured error handling, and SignalR capabilities. Relationships are limited to excerpted references and README statements; some frontend and backend wiring is represented as unverified rather than inferred from filenames.
Main entry points: ExchangeRefreshTokenUseCase.cs Refresh use case · AuthController.cs Auth controller · UserRepository.cs User repository · auth.ts Auth API client
Components 20
React client
- App routing
src/AwesomeAspApp/ClientApp/src/App.tsx - Sign-in UI
src/AwesomeAspApp/ClientApp/src/features/auth/components/SignInForm.tsx - Auth API client
src/AwesomeAspApp/ClientApp/src/services/api/auth.ts - Client token refresh
src/AwesomeAspApp/ClientApp/src/features/auth/epics.ts - Redux store
src/AwesomeAspApp/ClientApp/src/store/index.ts - SignalR client
src/AwesomeAspApp/ClientApp/src/store/signalr/redux-signalr.ts
HTTP API
- Auth controller
src/AwesomeAspApp/Controllers/AuthController.cs - Request validation
src/AwesomeAspApp/Models/Validation/LoginRequestValidator.cs - SignalR hub
src/AwesomeAspApp/Hubs/CoreHub.cs
Authentication core
- Login use case
src/AwesomeAspApp.Core/UseCases/LoginUseCase.cs - Refresh use case
src/AwesomeAspApp.Core/UseCases/ExchangeRefreshTokenUseCase.cs - User and tokens
src/AwesomeAspApp.Core/Domain/Entities/User.cs - Domain errors
src/AwesomeAspApp.Core/Errors/DomainError.cs
Identity infrastructure
- User repository
src/AwesomeAspApp.Infrastructure/Identity/Repositories/UserRepository.cs - Identity database
src/AwesomeAspApp.Infrastructure/Identity/AppIdentityDbContext.cs - JWT factory
src/AwesomeAspApp.Infrastructure/Auth/JwtFactory.cs - JWT validator
src/AwesomeAspApp.Infrastructure/Auth/JwtValidator.cs - Refresh-token factory
src/AwesomeAspApp.Infrastructure/Auth/TokenFactory.cs
Other components
- User
- SQL database
Connections 18
- User → App routing: uses
- App routing → Sign-in UI: routes to
- Sign-in UI → Auth API client: submits credentials
- Auth API client → Auth controller: HTTP auth requests
- Auth controller → Login use case: invokes login
src/AwesomeAspApp/Controllers/AuthController.cs - Auth controller → Refresh use case: invokes refresh
src/AwesomeAspApp/Controllers/AuthController.cs - Auth controller → Request validation: validates input
- Login use case → User repository: uses users
- Refresh use case → User repository: loads and updates
src/AwesomeAspApp.Core/UseCases/ExchangeRefreshTokenUseCase.cs - Refresh use case → JWT validator: validates access token
src/AwesomeAspApp.Core/UseCases/ExchangeRefreshTokenUseCase.cs - Refresh use case → JWT factory: generates access token
src/AwesomeAspApp.Core/UseCases/ExchangeRefreshTokenUseCase.cs - Refresh use case → Refresh-token factory: generates refresh token
src/AwesomeAspApp.Core/UseCases/ExchangeRefreshTokenUseCase.cs - User repository → Identity database: loads refresh tokens
src/AwesomeAspApp.Infrastructure/Identity/Repositories/UserRepository.cs - Identity database → SQL database: persists identity data
- User repository → User and tokens: maps users
src/AwesomeAspApp.Infrastructure/Identity/Repositories/UserRepository.cs - Client token refresh → Auth API client: refreshes tokens
- SignalR client → SignalR hub: connects realtime
- SignalR client → Redux store: integrates Redux