Adventures with Azure AD: Group Overage Claim

I have an ASP.NET Core 2.2 Web App. My app authenticates users with OpenIdConnect against Azure Active Directory. I want to use the Security Groups of the authenticated user for role authorization inside my app. To do this, I needed to setup my App Registration in Azure AD to return the Security Groups as claims….

Adventures with Azure AD: Authorizing based on Security Groups

The repository https://github.com/mattruma/SampleAzureADAuthentication has a couple of a sample ASP.NET MVC Core 2.2 applications demonstrating how to authenticate a user against Azure AD and authorize a user based on Security Groups in Azure AD. The first example uses a custom IAuthorizationFilter to look at the groups in principal claims. The second example uses a custom…

Adventures with Logic Apps: Determine the State of a Logic App

In a previous article, Adventures with Logic Apps: Enabling/Disabling a Logic App from Another Logic App, I created a Logic App that would disable a Logic App and then re-enable it after a specific time frame had elapsed. One of my peers pointed out that the Logic App should NOT disable the Logic App if…

Adventures with Azure AD B2C: Authenticating React

I have a React app that I am trying to wire up to Azure AD B2C. I am using James Randall’s library react-azure-adb2c. Wiring it up was a snap, the document was straight-forward on this. When I ran the application I received an UnsupportAuthorityValidation JavaScript error in the console. This is a tracked issue at…

Adventures with Azure: Sample CRUD .NET Core API and Azure Functions

I created a sample CRUD demonstrating API functionality using a .NET Core Web API and Azure Functions. Each project contains RESTful API endpoints for adding, updating, fetching and deleting a record from a database. There are currently two flavors: Cosmos DB 3.0 SDK at https://github.com/mattruma/Heroes Entity Framework Core at https://github.com/mattruma/Heroes/tree/EntityFrameworkCore In the future, I will…

Adventures with Azure: Swagger and XML Comments

For my API projects I like to generate XML comments that are used in conjunction with Swagger to provide better guidance on how to use the API, from methods to models. To do this, I just add the following snippet of code to my Startup.cs file: In the above example I want to include XML…

Adventures with Azure DevOps: Populating Azure Table Storage

Lately, I have been playing around with Azure DevOps, specifically a web application deployment using ARM Templates and Azure PowerShell. I have a project, and an associated GIT repository, in Azure DevOps where I keep my ARM Templates and PowerShell scripts that I use for the deployment of my web application. The release pipeline is…

Adventures with Azure DevOps: Deploying Azure Resource Group

In this article I will demonstrate a couple of ways to deploy an Azure Resource Group using Azure DevOps. Setup To get started you will need to create an Azure DevOps project and a repository. I created a repository in GitHub, called SampleAzureDevOpsResourceGroupDeployment, which can be found at https://github.com/mattruma/SampleAzureDevOpsResourceGroupDeployment. You can also create the GIT…