1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-03-11 15:20:34 -04:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Mark McDowall
c2989ced7f Fixed integration test's path to Sonarr executable
(cherry picked from commit 652027821d140c4f04fc7ca5883043bad25d89bb)
2022-08-19 06:31:39 +00:00
3 changed files with 4 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ namespace NzbDrone.Test.Common
}
else
{
Start(Path.Combine(TestContext.CurrentContext.TestDirectory, "..", "bin", consoleExe));
Start(Path.Combine(TestContext.CurrentContext.TestDirectory, "bin", consoleExe));
}
while (true)

View File

@@ -33,7 +33,6 @@ namespace Radarr.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 Radarr.Http.Extensions;
@@ -18,14 +15,17 @@ namespace Radarr.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;
}