|
1 | 1 | --- |
2 | | -title: Use Serilog to troubleshoot protected Web API authentication or authorization errors |
| 2 | +title: Use Serilog to Troubleshoot Protected Web API Authentication or Authorization Errors |
3 | 3 | description: Provides a sample web API application to troubleshoot Microsoft Entra protected Web API authentication or authorization errors using Serilog logs. |
4 | | -ms.date: 05/07/2025 |
| 4 | +ms.date: 05/012/2025 |
5 | 5 | ms.service: entra-id |
6 | 6 | ms.custom: sap:Developing or Registering apps with Microsoft identity platform |
7 | 7 | ms.reviewer: bachoang, v-weizhu |
@@ -30,10 +30,10 @@ To add the application ID URI for a web API, follow these steps: |
30 | 30 |
|
31 | 31 | 1. In the Azure portal, navigate to the app registration of the web API. |
32 | 32 | 2. Select **Expose an API** under **Manager**. |
33 | | -3. At the top of the page, select **Add** next to **Application ID URI**. This defaults to `api://<application-client-id>`. |
| 33 | +3. At the top of the page, select **Add** next to **Application ID URI**. The defaults is `api://<application-client-id>`. |
34 | 34 | 4. Select **Save**. |
35 | 35 |
|
36 | | -:::image type="content" source="media/serilog-protected-web-api-authentication-authorization-errors/application-id-uri.png" alt-text="Screenshot that shows how to set the application ID URI in an app registration." border="false"::: |
| 36 | +:::image type="content" source="media/serilog-protected-web-api-authentication-authorization-errors/application-id-uri.png" alt-text="Screenshot that shows how to set the application ID URI in an app registration."::: |
37 | 37 |
|
38 | 38 | ### Step 2: Change the sample application configuration |
39 | 39 |
|
@@ -69,7 +69,7 @@ Configure Serilog in the `Serilog` section in the **appsettings.json** file as f |
69 | 69 |
|
70 | 70 | ## Set up logging for JwtBearer events |
71 | 71 |
|
72 | | -Here's the sample Program.cs file that shows how to set up logging for the preceding events: |
| 72 | +Here's the sample **Program.cs** file that shows how to set up logging for the preceding events: |
73 | 73 |
|
74 | 74 | ```csharp |
75 | 75 | using Microsoft.AspNetCore.Authentication; |
|
0 commit comments