Skip to content

Commit 994fae9

Browse files
authored
Merge pull request #190569 from Dickson-Mwendia/uwp-desktop-app-quickstart
[MSID][Quickstart] How to run a WPF desktop application
2 parents c6e7eb9 + 53d99dc commit 994fae9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

articles/active-directory/develop/includes/desktop-app/quickstart-windows-desktop.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Quickstart: Sign in users and call Microsoft Graph in a Windows desktop app | Azure"
3-
description: In this quickstart, learn how a Windows desktop .NET (XAML) application can get an access token and call an API protected by the Microsoft identity platform.
3+
description: Learn how a Windows Presentation Foundation (WPF) application can get an access token and call an API protected by the Microsoft identity platform.
44
services: active-directory
55
author: jmprieur
66
manager: CelesteDG
@@ -79,6 +79,13 @@ Where:
7979

8080
To find the values of **Directory (tenant) ID** and **Supported account types**, go to the app's **Overview** page in the Azure portal.
8181

82+
#### Step 4: Run the application
83+
84+
To build and run the sample application in Visual Studio, select the **Debug menu** > **Start Debugging**, or press the F5 key. Your application's MainWindow is displayed.
85+
86+
When the app's main window appears, select the Call Microsoft Graph API button. You'll be prompted to sign in using your Azure Active Directory account (work or school account) or Microsoft account (live.com, outlook.com) credentials.
87+
88+
If you're running the application for the first time, you'll be prompted to provide consent to allow the application to access your user profile and sign you in. After consenting to the requested permissions, the application displays that you've successfully logged in. You should see some basic token information and user data obtained from the call to the Microsoft Graph API.
8289

8390
## More information
8491

0 commit comments

Comments
 (0)