Tag: dotnet

blog

Advanced JWT Authentication in ASP.NET Core Minimal API. Part 2: Refresh Tokens and Client-Side Integration

Introduction In my previous articles, we’ve covered quite a journey through JWT authentication in ASP.NET Core Minimal API. Part 1 introduced the basics using the dotnet user-jwts tool, providing a foundation for securing APIs during development. Part 2 took us deeper into manual token generation and validation, showing how to implement production-ready JWT authentication with full control over the process. However, […]

Ottorino Bruni 
blog

How to Implement JWT Authentication in ASP.NET Core Minimal API

In today’s world of modern web applications, secure authentication is not just a feature – it’s a necessity. Token-based authentication, particularly using JWT (JSON Web Tokens), has become the go-to solution for securing APIs. Before we dive into the implementation, let’s understand why this matters. What Is Token-Based Authentication? Token-based authentication is a security mechanism […]

Ottorino Bruni 
blog

How to Manage Features in .NET and C# with Azure App Configuration: Centralized Feature Flags and Settings

Introduction In my previous article, “How to Turn On Features in .NET and C# Without Redeploying: Exploring Feature Flags and A/B Testing”, I introduced the concept of feature flags and explained their value in modern software development. We explored how they enable dynamic feature control, safer rollouts, and experimentation like A/B testing, all while minimizing […]

Ottorino Bruni 
blog

How to Implement Entity Framework Core Migrations in a .NET Console Application Using C# and VSCode

Introduction to Entity Framework Core Migrations In the previous articles, I discussed how to integrate SQLite with a .NET console application using C# and VSCode, and how to use Dapper for data access. You can find those articles at these links: SQLite with .NET Console Application, Using Dapper and Entity Framework Core in .NET Applications. […]

Ottorino Bruni 
blog

How to Secure User Secrets on Your Development Environment in ASP.NET Core?

Introduction: Safeguarding Sensitive Data in ASP.NET Core Development When developing applications, we increasingly rely on various services, such as databases and cloud platforms. This reliance necessitates storing connection strings and credentials, which is commonly done in configuration files. However, this approach poses significant risks. Storing sensitive data in configuration files can lead to inadvertent exposure, […]

Ottorino Bruni