auth
This commit is contained in:
parent
eb8b32d5f2
commit
e78c614763
2 changed files with 2 additions and 5 deletions
|
@ -1,9 +1,4 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Interlinked.Shared.Model;
|
using Interlinked.Shared.Model;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using Interlinked.Shared.Model;
|
using Interlinked.Shared.Model;
|
||||||
using Interlinked.User;
|
using Interlinked.User;
|
||||||
|
using Interlinked.User.Services;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
@ -13,6 +14,7 @@ builder.Services.ConfigureApplicationCookie(options =>
|
||||||
// Cookie settings
|
// Cookie settings
|
||||||
options.Cookie.HttpOnly = true;
|
options.Cookie.HttpOnly = true;
|
||||||
options.ExpireTimeSpan = TimeSpan.FromMinutes(30);
|
options.ExpireTimeSpan = TimeSpan.FromMinutes(30);
|
||||||
|
options.Cookie.Name = AuthManager.AUTH_COOKIE_NAME;
|
||||||
|
|
||||||
options.LoginPath = "/auth/login";
|
options.LoginPath = "/auth/login";
|
||||||
options.AccessDeniedPath = "/auth/account/uwuless";
|
options.AccessDeniedPath = "/auth/account/uwuless";
|
||||||
|
|
Loading…
Reference in a new issue