#103: Added method to create song and moving some code around

This commit is contained in:
kdeng00
2024-08-06 19:51:50 -04:00
parent 77030c6347
commit b3b5a975d9
6 changed files with 66 additions and 4 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Authentication.JwtBearer;
// using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityModel.Tokens;
using Microsoft.OpenApi.Models;
@@ -52,6 +52,9 @@ var Configuration = builder.Configuration;
var connString = Configuration.GetConnectionString("DefaultConnection");
// Microsoft.AspNetCore.Authentication
// builder.Services.AddAuthentication()
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(options =>
{
options.RequireHttpsMetadata = false;