entra-id-aspire-authentication

Official

Add Entra ID/Azure AD auth to Aspire apps.

AuthorAzureAD
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you add Microsoft Entra ID (Azure AD) authentication to .NET Aspire applications, enabling secure sign-in and API access using Microsoft.Identity.Web, OpenID Connect, and token acquisition.

Core Features & Use Cases

  • Integrate Azure AD authentication into Aspire APIs and Web/Blazor apps using AddMicrosoftIdentityWebApp and AddMicrosoftIdentityWebApi.
  • Enable token acquisition for downstream API calls and support for incremental consent and Conditional Access in Blazor Server scenarios.
  • Align with a two-phase workflow: Phase 1 wires authentication code into the app with placeholder values; Phase 2 provisions real Entra ID app registrations and updates configuration via the ente-id-aspire-provisioning process.

Quick Start

Phase 1: Add authentication code with placeholder values so the Aspire app builds but does not run. Phase 2: Use ente-id-aspire-provisioning to create Entra ID app registrations and update appsettings.json with real Client IDs and a client secret.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: entra-id-aspire-authentication
Download link: https://github.com/AzureAD/microsoft-identity-web/archive/main.zip#entra-id-aspire-authentication

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.