Learning resourceSoftware development

active-directory-dotnet-desktop-msgraph-v2

Learn how a WPF app signs in users and calls Microsoft Graph.

Stars
159
Forks
107
License
MIT
Updated
Updated May 12, 2026

Checking live repository facts…

Project overview

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.

Repository facts

Primary language
PowerShell
License
MIT
Repository updated
May 12, 2026
Default branch
main

Resource types

Learning resource

Use cases

Software developmentSecurity and privacy

Runtime

Desktop

Protocols & integrations

OAuth

Audience

Developers

Related projects

Browse more similar projects