Skip to content

Commit 756a72f

Browse files
Merge pull request #47695 from aiwangmicrosoft/patch-1
Update redirect URI
2 parents ede903c + e268d79 commit 756a72f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/active-directory/develop/quickstart-v2-windows-desktop.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In this quickstart, you'll learn how to write a Windows desktop .NET (WPF) appli
4646
> - In the **Supported account types** section, select **Accounts in any organizational directory and personal Microsoft accounts (for example, Skype, Xbox, Outlook.com)**.
4747
> - Select **Register** to create the application.
4848
> 1. In the list of pages for the app, select **Authentication**.
49-
> 1. In the **Redirect URIs** | **Suggested Redirect URIs for public clients (mobile, desktop)** section, check **https://login.microsoftonline.com/common/oauth2/nativeclient**.
49+
> 1. In the **Redirect URIs** | **Suggested Redirect URIs for public clients (mobile, desktop)** section, use **https://login.microsoftonline.com/common/oauth2/nativeclient**.
5050
> 1. Select **Save**.
5151
5252
> [!div class="sxs-lookup" renderon="portal"]
@@ -110,6 +110,7 @@ Then, initialize MSAL using the following code:
110110
```csharp
111111
public static IPublicClientApplication PublicClientApp;
112112
PublicClientApplicationBuilder.Create(ClientId)
113+
.WithRedirectUri("https://login.microsoftonline.com/common/oauth2/nativeclient")
113114
.WithAuthority(AzureCloudInstance.AzurePublic, Tenant)
114115
.Build();
115116
```

0 commit comments

Comments
 (0)