How to Implement Cookie-Based User Authentication in ASP.NET Core

Login Web Application using Cookie Authentication in ASP NET Core

In this tutorial, we’ll explore how to create a robust login web application using Cookie Authentication in ASP.NET Core. We’ll walk through the steps for implementing user registration and logout functionalities seamlessly. Additionally, we’ll leverage Dapper, a micro ORM, to handle database connectivity efficiently. By the end, you’ll have a solid understanding of how to … Read more

ASP.NET Core MVC Login and Registration using Identity

Login and Registration using Identity

In this article, we will learn how to create a login and registration using identity in asp.net core. ASP.NET Core Identity provides a framework for managing and storing user accounts in ASP.NET Core apps.  Identity is flexible enough to sync with SQL Server databases, so we’ll store login information there. Entity Framework will store user data, … Read more

Authentication and Authorization with IdentityServer4 in .NET Core

Secure .net Core Web App using Identity Server 4

In this article we will be implementing authentication and authorization with IdentityServer4 in a .NET Core application. IdentityServer4 is a powerful, open-source framework for building secure identity solutions in .NET applications. It enables developers to implement authentication and authorization using industry-standard protocols such as OAuth 2.0 and OpenID Connect. To be able to understand how … Read more

Logging in ASP.NET Core web Application

Logging in ASP NET Core

Logging is essential for tracking errors, keeping track of performance, and diagnosing problems with our web application. Effective logging enables developers to quickly locate and fix issues, enhancing application performance and user experiences. Popular logging framework NLog offers logging in ASP.NET Core with a wealth of capabilities and flexibility. In this article, we will guide … Read more

Understanding Service Lifetimes in ASP.NET Core

Understanding Service Lifetimes in ASP.NET Core

In this article, we will explore how to manage the lifetimes of services in ASP.NET Core, an essential aspect of building scalable and efficient applications. Service lifetimes dictate how and when instances of services are created and disposed of within the application’s dependency injection container. I. Service Lifetimes in ASP.NET Core 1. Transient Services registered … Read more