Skip to content

samples

Bogdan Gavril edited this page Jul 21, 2025 · 6 revisions

Samples using Microsoft.Identity.Web

Web applications

The following samples illustrate web applications that sign in users. Some samples also demonstrate the application calling Microsoft Graph, or your own web API with the user's identity.

Language/
Platform
Code sample(s)
on GitHub
Auth
libraries
Auth flow
ASP.NET Core
Build
ASP.NET Core Series
Sign in users
Sign in users (B2C)
Call Microsoft Graph
Customize token cache
Call Graph (multi-tenant)
Call Azure REST APIs
Protect web API
Protect web API (B2C)
Protect multi-tenant web API
Use App Roles for access control
Use Security Groups for access control
Deploy to Azure Storage and App Service
• MSAL.NET
• Microsoft.Identity.Web
• OpenID connect
• Authorization code
• On-Behalf-Of
Blazor Server
Build
Blazor Server series
Sign in users
Sign in users (B2C)
Call Microsoft Graph