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 APIs Protected web APIs which call downstream web APIs A simple way of explaining this would be saying that you have a web application which is responsible for connecting to the Microsoft Graph API to authenticate and authorise users and make subsequent calls to the Graph API....

12 April 2021 · 3 min · Martyn

Effective App Roles in Multi-Tenant Applications

As I begin work on the cloud management platform at Transparity, I’ve been very clear that wherever possible, we need to make use of built-in features in the .NET Core framework as well as the Azure platform. Identity is one of the areas where this falls firmly into line, and you actually have a number of great options available to you. I’ve opted for Azure AD in this rather than Azure AD B2C, the reason for that is that I don’t have a need for people to login with identity providers other than Azure AD, and setting up B2C for multi-tenant Azure AD support is troublesome....

6 April 2021 · 5 min · Martyn

Creating a CDN Helper in Dot Net Core

Creating a custom helper is easier than you would think. So to keep things easy for us, we are going to use the configuration file appsettings.json to store the base path to our CDN. This will make it easier to change our root without having to update the whole of our application. Code walkthrough First of all, I am using Dot Net Core for this, you can easily achieve the same thing using the regular ....

8 September 2020 · 2 min · Martyn

Deploying .NET Applications to AKS using GitHub Actions

In order to test locally, you will also need Docker Desktop installed on your machine. This should be done before you create your Visual Studio project below. To start, we need some application code. Using Visual Studio, create a new project, for this walkthrough, I will be using an ASP.NET Core Web Application, I will also be publishing my source code in GitHub, this repository is already cloned locally to my machine....

10 August 2020 · 5 min · Martyn