Skip to content

Commit 53d99dc

Browse files
How to run a WPF application
1 parent f65ad30 commit 53d99dc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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
77
ms.service: active-directory
88
ms.subservice: develop
99
ms.topic: include
1010
ms.workload: identity
11-
ms.date: 01/14/2022
11+
ms.date: 03/04/2022
1212
ms.author: jmprieur
1313
ms.custom: aaddev, identityplatformtop40, mode-api
1414
#Customer intent: As an application developer, I want to learn how my Windows Presentation Foundation (WPF) application can get an access token and call an API that's protected by the Microsoft identity platform.
@@ -22,7 +22,7 @@ See [How the sample works](#how-the-sample-works) for an illustration.
2222

2323
## Prerequisites
2424

25-
* [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) with the [Universal Windows Platform development](/windows/uwp/get-started/get-set-up) workload installed
25+
* [Visual Studio](https://visualstudio.microsoft.com/vs/) with the [Universal Windows Platform development](/windows/uwp/get-started/get-set-up) workload installed
2626

2727
## Register and download your quickstart app
2828
You have two options to start your quickstart application:
@@ -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)