From d726a7acb21e8cbbcb331e928c419d00969ac3ed Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 27 Apr 2017 23:16:17 +0200 Subject: [PATCH] Fixed: Sonarr UI Authentication cookie should be placed on path (UrlBase) instead of domain alone. fixes #1874 --- src/NzbDrone.Api/Authentication/EnableAuthInNancy.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Api/Authentication/EnableAuthInNancy.cs b/src/NzbDrone.Api/Authentication/EnableAuthInNancy.cs index f6efc16ce..61e9a8aa3 100644 --- a/src/NzbDrone.Api/Authentication/EnableAuthInNancy.cs +++ b/src/NzbDrone.Api/Authentication/EnableAuthInNancy.cs @@ -33,12 +33,12 @@ namespace NzbDrone.Api.Authentication { if (_configFileProvider.AuthenticationMethod == AuthenticationType.Forms) { - RegisterFormsAuth(pipelines); + RegisterFormsAuth(pipelines); } else if (_configFileProvider.AuthenticationMethod == AuthenticationType.Basic) { - pipelines.EnableBasicAuthentication(new BasicAuthenticationConfiguration(_authenticationService, "Sonarr")); + pipelines.EnableBasicAuthentication(new BasicAuthenticationConfiguration(_authenticationService, "Sonarr")); } pipelines.BeforeRequest.AddItemToEndOfPipeline((Func) RequiresAuthentication); @@ -68,6 +68,7 @@ namespace NzbDrone.Api.Authentication { RedirectUrl = _configFileProvider.UrlBase + "/login", UserMapper = _authenticationService, + Path = _configFileProvider.UrlBase, CryptographyConfiguration = cryptographyConfiguration }); }