5 Commits

Author SHA1 Message Date
b08d88ee0f Configure NLog only in non-development environments
Refactored logging setup to clear providers and use NLog exclusively when not in development. This ensures development uses default logging, while production and other environments leverage NLog.
2026-03-18 11:14:26 +01:00
58f228dc6f Add NLog file logging configuration and error handling
Integrate NLog for structured file-based logging by adding configuration to appsettings.json and initializing NLog in Program.cs. Wrap application startup in a try-catch block to log unhandled exceptions. No changes to core application logic.
2026-03-18 11:12:16 +01:00
893b44565c Enable Swagger via config and add project version metadata
Added versioning fields to FakeNTLMServer.csproj for assembly and informational versioning. Introduced "EnableSwagger" setting in appsettings.json to allow Swagger UI outside development environments. Reformatted authentication registration in Program.cs for clarity.
2026-03-16 15:17:57 +01:00
7926d3d93f Enhance Swagger UI with Negotiate auth and XML docs
- Add custom OpenAPI doc with title, version, and description
- Define "Negotiate" security scheme for NTLM/Kerberos auth
- Require Negotiate authentication for all endpoints in Swagger
- Include XML comments in Swagger UI if available
- Configure Swagger UI to send credentials (withCredentials: true) for authenticated endpoint testing
2026-03-13 10:37:16 +01:00
9033e67b82 Initial ASP.NET Core Web API with NTLM auth and Swagger
Set up FakeNTLMServer project targeting .NET 8.0 with Windows Authentication (Negotiate) and Swagger/OpenAPI support. Added project and solution files, configured authentication and authorization in Program.cs, and included launch settings and logging configuration for development and production environments.
2026-03-03 09:17:25 +01:00