.NET Authentication Loop with Container Based Apps

Following on from my previous post on identity with .NET and containers, I wanted to expand on this to look at authentication loops from Entra ID. The symptoms of this issue are pretty simple, when you hit your .NET container based application, secured with Entra ID, you are sent in a loop to the authentication … Continue reading .NET Authentication Loop with Container Based Apps

Exposing Route Data for Dynamic Navigation in .NET MVC

Sometimes, for example dynamic navigation, we may need to expose data about the current URL, this post looks at using ViewContext to expose this data. The scenario is as follows, you know a user is part of a policy that allows administration access, but your layout caters for both regular users and an administration dashboard. … Continue reading Exposing Route Data for Dynamic Navigation in .NET MVC

Protecting Web APIs Using Microsoft Identity Platform: Part 2

The following posts are part of this series: Part 1: Creating your App Registration Part 2: Configuring your code Part 3: Securing your API endpoints Defining protected First of all, let's look at what we mean by protected. Much like in ASP.NET, in ASP.NET Core, you can use the [Authorize] attribute to define that your … Continue reading Protecting Web APIs Using Microsoft Identity Platform: Part 2

Protecting Web APIs Using Microsoft Identity Platform: Part 1

The following posts are part of this series: Part 1: Creating your App Registration Part 2: Configuring your code Part 3: Securing your API endpoints Let's begin I'm not going to cover the steps involved in creating an app registration. This is covered, in detail, in the Microsoft documentation. In this article though, I want … Continue reading Protecting Web APIs Using Microsoft Identity Platform: Part 1

Azure App Configuration in .NET 5 Azure Functions

A number of changes affect the operation of Azure Functions from .NET 3 to .NET 5. In this post, we look at integrating with Azure App Configuration.Recently, Microsoft announced the availability of support for .NET 5 in Azure Functions. Upgrading is a little more complicated than usual. Normally we would just change netcoreapp3.1 over to … Continue reading Azure App Configuration in .NET 5 Azure Functions

Call the Azure REST API using Microsoft Identity Web

The Microsoft Identity Platform provides developers with the opportunity to make use of v2.0 endpoints to develop their applications. In .NET Core this is the Microsoft.Identity.Web package.This library is specifically written for applications fulfilling either of the two scenarios below:Web applications which sign in users and call web APIsProtected web APIs which call downstream web … Continue reading Call the Azure REST API using Microsoft Identity Web