Files
QuizSystem/ClassSelect/ClassSelect/Program.cs
Karsten Jeppesen eba66b2ad2
All checks were successful
DMA-CSD-CICD/QuizSystem/pipeline/head This commit looks good
UCN/QuizSystem/pipeline/head This commit looks good
Initial commit
2026-04-10 17:05:34 +02:00

33 lines
890 B
C#

//
// 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 ClassSelect.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);