Skip to content

Commit dd29c22

Browse files
committed
Work on feedback
1 parent 83fca11 commit dd29c22

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed
Loading
Loading

articles/active-directory/external-identities/customers/sample-desktop-wpf-dotnet-sign-in.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ If you choose to download the *.zip* file, extract the sample app file to a fold
8888

8989
1. After you launch the sample you should see a window with a **Sign-In** button. Select the **Sign-In** button.
9090

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.":::
9292

9393
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.
9494
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.
9595

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.":::
9797

9898
### How it works
9999

articles/active-directory/external-identities/customers/tutorial-desktop-wpf-dotnet-sign-in-build-app.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ dotnet add package Microsoft.Identity.Client.Broker
7575
- Replace `Enter_the_Tenant_Subdomain_Here` with the Directory (tenant) subdomain.
7676
- Replace `Enter_the_Application_Id_Here` with the Application (client) ID of the app you registered earlier.
7777

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.
8179
1. In the *AzureAdConfig.js* file, define the getters and setters for the `ClientId` and `Authority` properties. Add the following code:
8280

8381
```csharp
@@ -96,8 +94,8 @@ After creating the app settings file, we'll create another file called *AzureAdC
9694
1. Navigate to the *sign-in-dotnet-wpf.csproj* file in the root folder of the app.
9795
1. In this file, take the following two steps:
9896

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.
10199

102100
```xml
103101
<Project Sdk="Microsoft.NET.Sdk">
@@ -240,7 +238,7 @@ Modify the *MainWindow.xaml* file to add the UI elements for the app. Open the *
240238
</StackPanel>
241239
```
242240

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.
244242

245243
- A button that signs in the user. `SignInButton_Click` method is called when the user selects this button.
246244
- 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
436434
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.
437435
1. After you launch the sample, you should see a window with a **Sign-In** button. Select the **Sign-In** button.
438436

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.":::
440438

441439
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.
442440
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.
443441

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.":::
445443

446444
## See also
447445

0 commit comments

Comments
 (0)