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;