Skip to main content

Code2Night Blog

C#, ASP.NET Core & .NET Programming Tutorials

Step-by-step tutorials, real source code, and practical guides for .NET developers.

Fresh weekly Real-world fixes Tooling + tips

Latest Blogs

How to Boost Your YouTube Channel Performance Easily & Automatically with Claude AI Chrome Extension

Growing a YouTube channel takes more than just uploading great content — it also requires ongoing optimization of your video titles, descriptions, and metadata to stay discoverable. But manually reviewing every video on your channel is time-consuming and tedious. What if an AI could do that for you, automatically, right inside your browser? In this tutorial, we show you exactly how to use the Claude AI Chrome Extension to analyze your YouTube channel, identify low-performing videos, and autom

Implementing Two-Factor Authentication (2FA) in ASP.NET Core Identity

This guide provides a comprehensive approach to implementing Two-Factor Authentication (2FA) using ASP.NET Core Identity, enhancing security for web applications. Understanding 2FA is crucial as it adds an additional layer of protection against unauthorized access, thereby mitigating risks associated with credential theft. Familiarity with ASP.NET Core Identity and basic authentication concepts is essential before proceeding with the implementation.

Securing ASP.NET Core appsettings.json Using Environment Variables and Secret Management

This article explores how to secure sensitive information in ASP.NET Core applications by utilizing environment variables and the built-in secret management system. Understanding these concepts is crucial for preventing exposure of sensitive data in production environments. Readers should have a basic understanding of ASP.NET Core and its configuration system before diving in.

Implementing IP Whitelisting and Blacklisting Middleware in ASP.NET Core

This article will explore the implementation of IP whitelisting and blacklisting middleware in ASP.NET Core applications, focusing on its importance in enhancing security measures. We will delve into the practical aspects of creating custom middleware that can filter requests based on IP addresses, ensuring that only authorized users can access sensitive resources. Prior knowledge of ASP.NET Core middleware and basic C# programming is recommended for a better understanding of the concepts discus

Implementing API Key Authentication Middleware in ASP.NET Core Web API

In this guide, you will learn how to implement API key authentication middleware in an ASP.NET Core Web API, a crucial technique for securing your APIs against unauthorized access. Understanding API key authentication helps in protecting sensitive data and ensuring that only authorized clients can interact with your services. Prior knowledge of ASP.NET Core and basic middleware concepts is recommended to fully grasp the implementation details.

CWE-362: Handling Race Conditions in ASP.NET Core Concurrent Requests with Locks

In this comprehensive guide, you will learn how to effectively handle race conditions in ASP.NET Core applications using locking mechanisms. Understanding this topic is crucial for ensuring data integrity and application reliability when multiple concurrent requests are processed. Prior knowledge of ASP.NET Core, multithreading concepts, and basic C# syntax is recommended.

Translate Page