Full source code here.
Before I start, let’s see what does reactive mean.
When talking about reactive forms, it means that we are avoiding to use ngModel, required and so on. This means that instead of showing that Angular is taking care of the form for us, we can use the underlying APIs to do so.
[Read More]
Using ASP.NET Core DI to inject objects into ActionFilterAttribute
Problem
Let’s assume you want to validate something before a request hits your ASP.NET Core controller’s action method. One of the possible solutions is to create an ActionFilterAttribute and use its OnActionExecutionAsync (in case you like to do it asynchronously) to do the checking. Now if you are depending on something like configuration or even another instance of a class it is going to be tricky.
[Read More]
CORS issues when using Azure AD in ASP.Net Core and Angular
Recently, I wrote a post about using Azure Active Directory (AD) as authentication mechanism for a single page application written in Angular. It also consumed ASP.NET Core 2.0 as API layer an we saw how to wire up the whole thing end to end.
[Read More]
Integrating your SPA with Azure AD
As a user I want to be able to login to system using my work account
This is one of the most famous lines in a user story in almost every project’s backlog. However, sometimes it might be the case that you are responsible to decide which authentication mechanism to be used.
[Read More]
Authentication in ASP.NET Core 2.0
As you might know the .NET Core 2.0 was release recently and with it come many improvements and changes. In this post I will point out a couple of changes from a security and authentication perspective.
[Read More]