Compare commits

..

1 Commits

Author SHA1 Message Date
Mark McDowall
91049f874b Add Volta node config
(cherry picked from commit b6417a6f43a9d294d17da531debde1db5fc5da49)
2022-09-18 00:50:15 +00:00
3 changed files with 6 additions and 4 deletions

View File

@@ -134,5 +134,8 @@
"webpack-cli": "4.7.2",
"webpack-livereload-plugin": "3.0.1",
"worker-loader": "3.0.8"
},
"volta": {
"node": "16.17.0"
}
}

View File

@@ -33,7 +33,6 @@ namespace Readarr.Http.Authentication
options.AccessDeniedPath = "/login?loginFailed=true";
options.LoginPath = "/login";
options.ExpireTimeSpan = TimeSpan.FromDays(7);
options.SlidingExpiration = true;
})
.AddApiKey("API", options =>
{

View File

@@ -1,8 +1,5 @@
using System;
using System.Net;
using Microsoft.AspNetCore.Http;
using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Authentication;
using NzbDrone.Core.Configuration;
using Readarr.Http.Extensions;
@@ -18,14 +15,17 @@ namespace Readarr.Http.Authentication
public class AuthenticationService : IAuthenticationService
{
private const string AnonymousUser = "Anonymous";
private static readonly Logger _authLogger = LogManager.GetLogger("Auth");
private readonly IUserService _userService;
private static string API_KEY;
private static AuthenticationType AUTH_METHOD;
public AuthenticationService(IConfigFileProvider configFileProvider, IUserService userService)
{
_userService = userService;
API_KEY = configFileProvider.ApiKey;
AUTH_METHOD = configFileProvider.AuthenticationMethod;
}