From a99c8f2be3d80aef7b3ee896215546e93b2fa403 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Sun, 24 May 2026 00:02:03 +1000 Subject: Removed authentication/authorization --- Program.cs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Program.cs') diff --git a/Program.cs b/Program.cs index fdb899c..a5d5172 100644 --- a/Program.cs +++ b/Program.cs @@ -1,6 +1,5 @@ using HyperBooru.Server.Components; using HyperBooru.Services; -using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Http.Json; using Microsoft.EntityFrameworkCore; @@ -13,9 +12,6 @@ public class Program { var builder = WebApplication.CreateBuilder(args); builder.Services.AddHttpContextAccessor(); - builder.Services.AddAuthentication( - CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(); - builder.Services.AddAuthorization(); builder.Services.AddControllers().AddJsonOptions(o => { var converter = new JsonStringEnumConverter(); o.JsonSerializerOptions.Converters.Add(converter); @@ -50,8 +46,6 @@ public class Program { using var db = scope.ServiceProvider.GetRequiredService(); db.Database.Migrate(); - app.UseAuthentication(); - app.UseAuthorization(); if(app.Environment.IsDevelopment()) { app.UseWebAssemblyDebugging(); } else { -- cgit v1.3