From 63e40a0bd5a3524a9482782a1b24aea8237289bb Mon Sep 17 00:00:00 2001 From: Damian Edwards Date: Mon, 30 Jan 2023 11:06:41 -0800 Subject: [PATCH] Fix comment in minimal APIs AuthN sample Move the comment about requiring the JwtBearer package to the sample that actually uses JwtBearer. --- .../security/7.0-samples/MinApiAuth/MinApiAuth/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();