diff --git a/docs/getting-started/quickstart-webapi.md b/docs/getting-started/quickstart-webapi.md index 848c55090..610e4cbb1 100644 --- a/docs/getting-started/quickstart-webapi.md +++ b/docs/getting-started/quickstart-webapi.md @@ -58,11 +58,11 @@ dotnet add package Microsoft.Identity.Web ### 2. Configure authentication in `Program.cs` ```csharp +using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.Identity.Web; var builder = WebApplication.CreateBuilder(args); -// Add authentication // Add authentication builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddMicrosoftIdentityWebApi(builder.Configuration, "AzureAd"); @@ -375,4 +375,4 @@ Now that you have a protected API: - [Web API Scenario Documentation](../scenarios/web-apis/README.md) - [Protected Web API Tutorial](https://learn.microsoft.com/azure/active-directory/develop/tutorial-web-api-dotnet-protect-endpoint) -- [API Samples](https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2) \ No newline at end of file +- [API Samples](https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2)