You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/external-identities/customers/sample-desktop-wpf-dotnet-sign-in.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,12 +88,12 @@ If you choose to download the *.zip* file, extract the sample app file to a fold
88
88
89
89
1. After you launch the sample you should see a window with a **Sign-In** button. Select the **Sign-In** button.
90
90
91
-
:::image type="content" source="./media/sample-wpf-dotnet-sign-in/wpf-sign-in-screen.png" alt-text="Sign-in screen for a WPF desktop application.":::
91
+
:::image type="content" source="./media/sample-wpf-dotnet-sign-in/wpf-sign-in-screen.png" alt-text="Screenshot of sign-in screen for a WPF desktop application.":::
92
92
93
93
1. On the sign-in page, enter your account email address. If you don't have an account, select **No account? Create one**, which starts the sign-up flow. Follow through this flow to create a new account and sign in.
94
94
1. Once you sign in, you'll see a screen displaying successful sign-in and basic information about your user account stored in the retrieved token.
95
95
96
-
:::image type="content" source="./media/sample-wpf-dotnet-sign-in/wpf-succesful-sign-in.png" alt-text="Successful sign-in for desktop WPF app.":::
96
+
:::image type="content" source="./media/sample-wpf-dotnet-sign-in/wpf-successful-sign-in.png" alt-text="Screenshot of successful sign-in for desktop WPF app.":::
- Replace `Enter_the_Tenant_Subdomain_Here` with the Directory (tenant) subdomain.
76
76
- Replace `Enter_the_Application_Id_Here` with the Application (client) ID of the app you registered earlier.
77
77
78
-
After creating the app settings file, we'll create another file called *AzureAdConfig.cs* that will help you read the configs from the app settings file.
79
-
80
-
1. Create the *AzureAdConfig.cs* file in the root folder of the app.
78
+
1. After creating the app settings file, we'll create another file called *AzureAdConfig.cs* that will help you read the configs from the app settings file. Create the *AzureAdConfig.cs* file in the root folder of the app.
81
79
1. In the *AzureAdConfig.js* file, define the getters and setters for the `ClientId` and `Authority` properties. Add the following code:
82
80
83
81
```csharp
@@ -96,8 +94,8 @@ After creating the app settings file, we'll create another file called *AzureAdC
96
94
1. Navigate to the *sign-in-dotnet-wpf.csproj* file in the root folder of the app.
97
95
1. In this file, take the following two steps:
98
96
99
-
- Modify the *sign-in-dotnet-wpf.csproj* file to instruct your app to copy the *appsettings.json* file to the output directory when the project is compiled. Add the following piece of code to the *sign-in-dotnet-wpf.csproj* file:
100
-
- Set the target framework to target *windows10.0.19041.0* build to help with reading cached token from the token cache as you'll see in the token cache helper class.
97
+
1. Modify the *sign-in-dotnet-wpf.csproj* file to instruct your app to copy the *appsettings.json* file to the output directory when the project is compiled. Add the following piece of code to the *sign-in-dotnet-wpf.csproj* file:
98
+
1. Set the target framework to target *windows10.0.19041.0* build to help with reading cached token from the token cache as you'll see in the token cache helper class.
101
99
102
100
```xml
103
101
<Project Sdk="Microsoft.NET.Sdk">
@@ -240,7 +238,7 @@ Modify the *MainWindow.xaml* file to add the UI elements for the app. Open the *
240
238
</StackPanel>
241
239
```
242
240
243
-
This code adds key UI elements. The methods and objects that handles the functionality of the UI elements are defined in the *MainWindow.xaml.cs* file that we create in the next step.
241
+
This code adds key UI elements. The methods and objects that handle the functionality of the UI elements are defined in the *MainWindow.xaml.cs* file that we create in the next step.
244
242
245
243
- A button that signs in the user. `SignInButton_Click` method is called when the user selects this button.
246
244
- A button that signs out the user. `SignOutButton_Click` method is called when the user selects this button.
@@ -436,12 +434,12 @@ Run your app and sign in to test the application
436
434
1. In your terminal, navigate to the root folder of your WPF app and run the app by running the command `dotnet run` in your terminal.
437
435
1. After you launch the sample, you should see a window with a **Sign-In** button. Select the **Sign-In** button.
438
436
439
-
:::image type="content" source="./media/sample-wpf-dotnet-sign-in/wpf-sign-in-screen.png" alt-text="Sign-in screen for a WPF desktop application.":::
437
+
:::image type="content" source="./media/tutorial-desktop-wpf-dotnet-sign-in-build-app/wpf-sign-in-screen.png" alt-text="Screenshot of sign-in screen for a WPF desktop application.":::
440
438
441
439
1. On the sign-in page, enter your account email address. If you don't have an account, select **No account? Create one**, which starts the sign-up flow. Follow through this flow to create a new account and sign in.
442
440
1. Once you sign in, you see a screen displaying successful sign-in and basic information about your user account stored in the retrieved token.
443
441
444
-
:::image type="content" source="./media/sample-wpf-dotnet-sign-in/wpf-succesful-sign-in.png" alt-text="Successful sign-in for desktop WPF app.":::
442
+
:::image type="content" source="./media/tutorial-desktop-wpf-dotnet-sign-in-build-app/wpf-successful-sign-in.png" alt-text="Screenshot of successful sign-in for desktop WPF app.":::
0 commit comments