Adventures in Azure: Curbside Pickup Sample App

With all that is going on with COVID-19 and the impact that it is having on retailers, I took a couple of days and wrote a curb-side app that would allow customers to notify a retailer, or any vendor for that matter, that they had arrived to pick-up their order. Please note, this is an…

Adventures in Azure: Imperative Deployment of an App Service and Authentication with Azure Active Directory

I am a big fan of deploying Azure resources using an imperative approach. In this example I wanted to create an App Service that used Azure Active Directory, without having to add any code, e.g. Startup.cs. I will use both Azure PowerShell and Azure CLI. This raises a good question, why mix Azure PowerShell and…

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…