#103: Fixed build issue

This commit is contained in:
kdeng00
2024-08-07 19:39:30 -04:00
parent b3b5a975d9
commit af45a49c05
2 changed files with 6 additions and 4 deletions
+3
View File
@@ -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;