Quizzer-8: Migrating to .NET 10

This commit is contained in:
Karsten Jeppesen
2026-05-01 11:40:09 +02:00
parent 15445b6e4a
commit f22c7dfb0c
116 changed files with 79176 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
//
// Extra packages installed:
// bootstrap - latest stable 5.x.x
// Microsoft.AspNetCore.Authentication.JwtBearer - latest version 8.x.x
// Microsoft.AspNetCore.Authentication.OpenIdConnect - latest version 8.x.x
// Microsoft.IdentityModel.JsonWebTokens - latest version 8.x.x
// Microsoft.IdentityModel.Protocols.OpenIdConnect - latest version
// Newtonsoft.Json - latest
using Quizzer.OpenIDConnect;
var builder = WebApplication.CreateBuilder(args);
// Configure for OpenID
OpenIDConnectUtils myConfig = new();
myConfig.ConfigureBuild(builder);
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
myConfig.ConfigureApp(app);