diff --git a/aspnetcore/fundamentals/minimal-apis/security/7.0-samples/MinApiAuth/MinApiAuth/Program.cs b/aspnetcore/fundamentals/minimal-apis/security/7.0-samples/MinApiAuth/MinApiAuth/Program.cs index d12b7b41e5..462ae03809 100644 --- a/aspnetcore/fundamentals/minimal-apis/security/7.0-samples/MinApiAuth/MinApiAuth/Program.cs +++ b/aspnetcore/fundamentals/minimal-apis/security/7.0-samples/MinApiAuth/MinApiAuth/Program.cs @@ -3,7 +3,6 @@ #elif FIRST // var builder = WebApplication.CreateBuilder(args); -// Requires Microsoft.AspNetCore.Authentication.JwtBearer builder.Services.AddAuthentication(); var app = builder.Build(); @@ -13,6 +12,7 @@ app.Run(); #elif JWT1 // var builder = WebApplication.CreateBuilder(args); +// Requires Microsoft.AspNetCore.Authentication.JwtBearer builder.Services.AddAuthentication().AddJwtBearer(); var app = builder.Build();