active-directory-dotnet-desktop-msgraph-v2
Learn how a WPF app signs in users and calls Microsoft Graph.
Learn how a WPF app signs in users and calls Microsoft Graph.
This sample demonstrates how a Windows WPF application uses MSAL.NET to obtain an access token and call Microsoft Graph through the Microsoft identity platform. It is preconfigured for a quick run in Visual Studio, while developers can replace the supplied coordinates with their own app registration. Its token cache uses DPAPI, so the cache file must be removed before moving a built application to another machine.
Resource types
Use cases
Runtime
Add sign-in, API calls, and authorization to ASP.NET Core web apps.
Build a protected ASP.NET Core API called from a WPF client.
Protocols & integrations
Audience
Public GitHub facts last synced Jul 14, 2026.
Make coding agents consult live Tensorlake documentation before writing SDK code.
Guide Claude Code through modern Solana dApp and on-chain program development.