MS ENTRA ID PROTECTED WEB API – JWT Token Validation with MSAL & Testing with Postman

Introduction: This article provides a comprehensive, step-by-step guide for the API project – an ASP.NET Core 8.0 Web API that is protected by Microsoft EntraID (formerly Azure Active Directory) using the Microsoft Identity Web (MSAL) library. The API validates incoming JWT bearer tokens issued by Azure AD and enforces scope-based authorization before allowing access to…

Testing Azure API Management with DefaultAzureCredential: An Integration Testing Approach

Introduction: In modern cloud-native applications, securing APIs is paramount. Azure API Management (APIM) provides a robust platform for managing and securing APIs, and when combined with Azure Entra ID (formerly Azure Active Directory), it offers enterprise-grade security. In my previous article on C# Corner, ‘Securing Azure API Management with DefaultAzureCredential and Zero-Trust Architecture,’ I demonstrated…

Extend Azure AD B2C claim enrichment: call the Function App only for a specific client

Introduction: In my previous article, I showed how to enrich tokens in Azure AD B2C by calling an Azure Function App during sign-in: https://gowthamcbe.com/2023/12/20/azure-ad-b2c-custom-policy-custom-claim-token-enrichment/ In this follow-up post, I’ll extend that solution so the claims-enrichment step (the Technical Profile that calls the Function App — in my case, GetUserAppRoleAssignment) runs only when the request originates…

Azure AD B2C Custom Policy: Forcing Password Reset on First Login

Introduction: When working with Azure AD B2C, there are scenarios where users must reset their password upon their first sign-in, especially when passwords are either admin reset or auto-generated during user migration. In this article, we’ll learn how to configure a Custom Policy in Azure AD B2C that enforces a password reset on the first…

Getting Started with Fluent UI Blazor Application

What is Fluent UI? Getting started with the implementation: You can create a Blazor App with Fluent UI template using the below commands The above command will install the fluent UI template The above command will create a new Blazor application with Fluent UI template. In this blog, we are going to see how to…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.

Leave a Reply