C# Design Patterns – Facade
In this article, we are about to cover another design pattern in C#, this time a structural one. That pattern is the Facade Pattern. The source code is available at the Facade Design Pattern GitHub Repository. For the complete list of articles from this series check...
Code Maze Weekly #17
This week we have some great news! .NET 5 Preview 1 is our and with it some exciting features. There is a lot of great articles to go through, so prepare your mugs and favorite coffee blends and dig in: .NET and C# Avoid In-Memory Databases for Tests [jimmybogard.com]...
OWASP Top 10 – Broken Authentication
Broken Authentication is the second most critical vulnerability as per OWASP Top 10 list. Using this vulnerability, an attacker can gain control over user accounts in a system. In the worst case, it could help them gain complete control over the system. In this...
Code Maze Weekly #16
Take your favorite mug, prepare your favorite coffee brand, find a comfy spot and enjoy this week's selection of great articles: .NET and C# Back to Basics: Rewriting a URL in ASP.NET Core [weblog.west-wind.com] Sometimes it's a good thing to go back to basics and...
External Identity Provider with ASP.NET Core Identity
Using an external identity provider while login to the application is a quite common case. This enables us to log in with our external accounts like Google, Facebook, etc. By using ASP.NET Core Identity, we are going to see that this is not a hard process at all. So,...
Code Maze Weekly #15
Coffee time! Here's this week's reading material to relax and enjoy the weekend: .NET and C# Creating a custom ErrorHandlerMiddleware function [andrewlock.net] Andrew shows us how to customize the ExceptionHandlerMiddleware to create custom responses when an error...
Two-Step Verification with ASP.NET Core Identity
The two-step verification is a process where a user enters credentials, and after successful password validation, receives an OTP (one-time-password) via email or SMS. Then, they enter that OTP in the Two-Step Verification form on our site to log in successfully. We...
Code Maze Weekly #14
Time to sit down, relax and read some of the excellent articles we've seen this week: .NET and C# Handling Errors in ASP .NET Core 3.1 [wakeupandcode.com] In this comprehensive article, Shahed covers error handling in multiple project types in ASP.NET Core. Getting...
User Lockout with ASP.NET Core Identity
The user lockout feature is a way to improve application security by locking out a user who enters a password incorrectly several times. This technique can help us in protecting against brute force attacks, where an attacker repeatedly tries to guess a password. In...
Code Maze Weekly #13
This week brings us a new set of fresh and unique articles in .NET World: .NET and C# Generic Host Builder in ASP .NET Core 3.1 [wakeupandcode.com] Shahed covers Generic Host Builder in detail in the "G" part of his A-Z series of 2020. If you want to know more about...
Email Confirmation with ASP.NET Core Identity
Email Confirmation is quite an important part of the user registration process. It allows us to verify the registered user is indeed an owner of the provided email. But why is this important? Well, let's imagine a scenario where two users with similar email addresses...
Code Maze Weekly #12
This week there are a lot of interesting articles to go through, so make a cup of coffee, find a comfy spot and enjoy: .NET and C# Create Certificates for IdentityServer4 signing using .NET Core [damienbod.com] Damien Bowden teaches us how to create certificates using...
Password Reset with ASP.NET Core Identity
One of the common practices in user account management is to provide a possibility for the users to change their passwords if they forget it. The password reset process shouldn’t involve application administrators because the users themselves should be able to go...
Code Maze Weekly #11
Find out what's been brewing this week in .NET ecosystem: .NET and C# EF Core Relationships in ASP .NET Core 3.1 [wakeupandcode.com] Shahed covers the different kinds of DB relationships and their representations in EF Core in ASP.NET Core 3.1 Inserting middleware...
Authentication With ASP.NET Core Identity
Authentication is the process of confirming a user’s identity. It is a set of actions, we use to verify the user’s credentials against the ones in the database. For the user to be able to provide credentials, our application requires a Login page with a set of fields...
Code Maze Weekly #10
This week we bring you a new set of fresh and interesting articles: .NET and C# Inserting middleware between UseRouting() and UseEndpoints() as a library author - Part 1 [andrewlock.net] Andrew discusses one possible solution to solving middleware inserting problem in...
OWASP Top 10 – Injection
The injection attack is the most critical web application security threat as per OWASP Top 10 list. In this article, we are going to look at the Injection attack in detail. To download the source code for this article, visit the OWASP - Injection GitHub Repo. To see...
Code Maze Weekly #9
This week we bring you a new set of fresh and interesting articles: .NET and C# Prevent Zip bombs in .NET Gérald Barré gives us a way to prevent Zip bombs when extracting archives on our servers. Have you ever thought about this? C# 8.0: Understanding Using...
User Registration with ASP.NET Core Identity
With ASP.NET Core Identity fully registered we can learn how to perform user registration actions in our project. User registration is the process of registering users in our application by saving their credentials in the database. So, in this article, we are going to...
Introducing Identity to the ASP.NET Core Project
In this article, we are going to learn about ASP.NET Core Identity implementation in the ASP.NET Core project. ASP.NET Core Identity is the membership system for web applications that includes membership, login and user data. But, it is not just a user store, it is...
Code Maze Weekly #8
The holiday season is over and we're back at full speed. This weekly is full of useful articles. Enjoy! .NET and C# Authentication & Authorization in ASP .NET Core 3.1 [wakeupandcode.com] A comprehensive article from Shahed Chowdhuri that goes through...