summaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-24 00:02:03 +1000
committerJake Mannens <jake@asger.xyz>2026-08-21 01:05:38 +1000
commitbedb356c07b2a62ce676503f0fcc5a477c2bdbf4 (patch)
tree2a9fe7a833b0b019059f1136b97cb0cbfa4c6805 /Program.cs
parent64f3c40897a69575bf715f91308a83a9658bd146 (diff)
Removed authentication/authorization
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/Program.cs b/Program.cs
index 4d2fb8a..1694587 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<HBContext>();
db.Database.Migrate();
- app.UseAuthentication();
- app.UseAuthorization();
if(app.Environment.IsDevelopment()) {
app.UseWebAssemblyDebugging();
} else {