diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-24 00:02:03 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-25 02:43:49 +1000 |
| commit | 8539f1142e9152cf9d285fa8be2738b48265a736 (patch) | |
| tree | 4df4a2f0edd52f7638a03320d47c5e2fb3bc059b /Program.cs | |
| parent | 69fc105d502ed8cd1c3e314ee799cb10aa3cf54b (diff) | |
Removed authentication/authorization
Diffstat (limited to 'Program.cs')
| -rw-r--r-- | Program.cs | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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<HBContext>(); db.Database.Migrate(); - app.UseAuthentication(); - app.UseAuthorization(); if(app.Environment.IsDevelopment()) { app.UseWebAssemblyDebugging(); } else { |
