From af45a49c05c8459f76904e0ec71624e4edc0df8f Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Wed, 7 Aug 2024 19:39:30 -0400 Subject: [PATCH] #103: Fixed build issue --- Icarus/Icarus.csproj | 7 +++---- Icarus/Program.cs | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Icarus/Icarus.csproj b/Icarus/Icarus.csproj index b9f76b2..02628be 100644 --- a/Icarus/Icarus.csproj +++ b/Icarus/Icarus.csproj @@ -15,6 +15,8 @@ + + runtime; build; native; contentfiles; analyzers @@ -32,12 +34,9 @@ - + - - - diff --git a/Icarus/Program.cs b/Icarus/Program.cs index 31e6840..cff1b1b 100644 --- a/Icarus/Program.cs +++ b/Icarus/Program.cs @@ -1,4 +1,5 @@ // using Microsoft.AspNetCore.Authentication.JwtBearer; +using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.EntityFrameworkCore; using Microsoft.IdentityModel.Tokens; using Microsoft.OpenApi.Models; @@ -55,6 +56,8 @@ var connString = Configuration.GetConnectionString("DefaultConnection"); // Microsoft.AspNetCore.Authentication // builder.Services.AddAuthentication() +// var sch = Microsoft.AspNetCore.Authentication.JwtBearer; + builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(options => { options.RequireHttpsMetadata = false;