From e78c614763a005e0b196e80c553b31846f87bbaf Mon Sep 17 00:00:00 2001 From: femsci Date: Sun, 1 Oct 2023 02:05:54 +0200 Subject: [PATCH] auth --- src/Interlinked.User/Controllers/AuthController.cs | 5 ----- src/Interlinked.User/Program.cs | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Interlinked.User/Controllers/AuthController.cs b/src/Interlinked.User/Controllers/AuthController.cs index d80c41b..d3de3ba 100644 --- a/src/Interlinked.User/Controllers/AuthController.cs +++ b/src/Interlinked.User/Controllers/AuthController.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Linq; using System.Security.Cryptography; -using System.Threading.Tasks; using Interlinked.Shared.Model; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Interlinked.User/Program.cs b/src/Interlinked.User/Program.cs index a9ee9eb..c01b729 100644 --- a/src/Interlinked.User/Program.cs +++ b/src/Interlinked.User/Program.cs @@ -1,5 +1,6 @@ using Interlinked.Shared.Model; using Interlinked.User; +using Interlinked.User.Services; var builder = WebApplication.CreateBuilder(args); @@ -13,6 +14,7 @@ builder.Services.ConfigureApplicationCookie(options => // Cookie settings options.Cookie.HttpOnly = true; options.ExpireTimeSpan = TimeSpan.FromMinutes(30); + options.Cookie.Name = AuthManager.AUTH_COOKIE_NAME; options.LoginPath = "/auth/login"; options.AccessDeniedPath = "/auth/account/uwuless";