# Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2

An ASP.NET Core Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)

Repository: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2
Canonical: https://ross.abutalabs.com/products/active-directory-aspnetcore-webapp-openidconnect-v2
Language: C#
License: MIT
License Family: permissive
Topics: quickstart, scenario-webapp-signin
Last push: 2025-10-29T20:32:17+00:00

## Health v2 (maintenance only)
Score: 45/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 49, release rhythm 8, longevity 100
- inputs: {"age_days": 3052, "days_push": 308, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1438, forks 999 (observed 2026-08-28T04:04:43.876909+00:00)

## What it is
An official Microsoft tutorial and sample collection showing how to add user sign-in to ASP.NET Core web apps using the Microsoft identity platform (Microsoft Entra ID) and call web APIs including Microsoft Graph. It is organized as incremental chapters covering single-org, multi-tenant, and personal-account scenarios.

## Use cases
- add microsoft entra id sign-in to an asp.net core web app
- learn openid connect authentication in dotnet
- call microsoft graph from a web app with delegated permissions
- build a multi-tenant saas app with azure ad login
- secure a web app with microsoft identity web
- deploy an authenticated asp.net core app to azure

## When to choose
- you are building an ASP.NET Core web app that needs Microsoft Entra ID authentication
- you want step-by-step guidance on sign-in plus calling web APIs with Microsoft.Identity.Web
- you need sample code for single-org, multi-tenant, or sovereign cloud audiences

## When to avoid
- you need authentication for a non-.NET stack
- you want a production-ready auth library rather than tutorial samples
- your identity provider is not Microsoft Entra ID

## Facets
- artifact type: learning-resource
- maturity: active
- function: auth, web-framework, http-client
- domain: web-development, security, developer-tools, apis
- platform: dotnet, cloud
- tags: aspnetcore, openid-connect, microsoft-entra-id, microsoft-identity-platform, microsoft-graph, oauth2, sample-code, tutorial, web-server

## Member repositories
- Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2 (main) score 45

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.876909+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:38.173621+00:00, confidence not recorded.
  - readme: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2 (fetched 2026-08-28T04:04:43.876909+00:00, sha d7af2ac7c0cf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
