|
|
|
@ -15,17 +15,14 @@ namespace Lidarr.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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|