TirsvadCLI DotNet.Lib.AuthenticationServer
Documentation
README
TirsvadCLI Authentication Server Library
Overview
TirsvadCLI Authentication Server is a .NET 10+ authentication server library implementing Clean Architecture. It supports local, network, and cloud deployment (Azure/AWS), and is ready for containerization with Docker.
Project Structure
src/— Source codeTirsvadCLI.AuthenticationServer.Domain— Domain entities and rulesTirsvadCLI.AuthenticationServer.Core— Application logic, CQRS, servicesTirsvadCLI.AuthenticationServer.Infrastructure— Data access, external servicesTirsvadCLI.AuthenticationServer.Api— ASP.NET Core Web API
tests/— Unit and integration tests (mirrors main projects, uses.Test/.Testssuffix)docs/— Documentation (Markdown, Doxygen config inDoxyfile)LocalNuget/— Local NuGet packages
Build & Run
- Build:
dotnet build TirsvadCLI.AuthenticationServer.slnx - Test:
dotnet test TirsvadCLI.AuthenticationServer.slnx - Run (API):
dotnet run --project src/TirsvadCLI.AuthenticationServer.Api
Solution-wide MSBuild props/targets are used for consistent builds.
Docker
Containerization is supported via docker-compose.yml and Dockerfile.
Key Dependencies & Patterns
- MediatR (CQRS pattern)
- Microsoft Identity (authentication/authorization)
- EF Core (data access)
- FluentValidation (validation)
- AutoMapper (object mapping)
- Swashbuckle/Swagger (API documentation)
- xUnit (testing)
- TirsvadCLI.AuthenticationServer (business logic)
All NuGet dependencies are managed via Directory.Packages.props with <PackageReference Include="..." /> (no Version attribute in project files).
Documentation
- See
docs/for guides and API reference (Markdown). - API documentation is generated using Doxygen (
Doxyfilein root).
Contributing
- Follow Clean Architecture principles.
- Place tests in
tests/, mirroring main projects and using.Test/.Testssuffix. - Use solution-wide MSBuild props/targets.
- Adhere to naming and folder conventions.
License
See LICENSE file for details.