-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
Securing your application is not a one-time task, but an ongoing process that evolves alongside new threats, technologies, and best practices. In this chapter, we implemented practical security measures to strengthen authentication, protect sensitive data, and improve observability while maintaining security compliance.
We began by enforcing MFA in Entra ID, ensuring that user authentication is not solely reliant on passwords, which are vulnerable to phishing and credential theft. By requiring an additional verification factor, we significantly reduced the risk of unauthorized access.
Next, we integrated Azure Key Vault to securely manage secrets, removing hardcoded credentials from our application's configuration files. This allowed us to centralize sensitive values such as API keys and connection strings, ensuring they are securely retrieved at runtime while maintaining proper environment isolation.
Following this, we focused on structured logging with Serilog, implementing...