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

Create Login and Registration using Identity in ASP.NET Core

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, such … Read more

Implement IdentityServer4 in .NET Core 6.0

Secure .net Core Web App using Identity Server 4

This article will explore how to implement 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 IdentityServer works, we will … Read more

Cookie Authentication in ASP.NET Core

Login Web Application using Cookie Authentication in ASP NET Core

In this tutorial, we will create a login web application using Cookie Authentication in ASP NET Core. We will also complete user registration and logout functionality and use dapper for the database connectivity. What is Cookie Authentication? Cookie authentication is one of the ways to implement login authentication. The cookie stored the identity of the … Read more