mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed the issue with user management, needed to implement our own authentication provider
This commit is contained in:
parent
63c2744336
commit
2a8927eb6d
46 changed files with 1132 additions and 565 deletions
|
@ -52,6 +52,7 @@ using PlexRequests.UI.Helpers;
|
|||
using Nancy.Json;
|
||||
|
||||
using Ninject;
|
||||
using PlexRequests.UI.Authentication;
|
||||
|
||||
namespace PlexRequests.UI
|
||||
{
|
||||
|
@ -92,13 +93,14 @@ namespace PlexRequests.UI
|
|||
var redirect = string.IsNullOrEmpty(baseUrl) ? "~/login" : $"~/{baseUrl}/login";
|
||||
|
||||
// Enable forms auth
|
||||
var formsAuthConfiguration = new FormsAuthenticationConfiguration
|
||||
var config = new CustomAuthenticationConfiguration
|
||||
{
|
||||
RedirectUrl = redirect,
|
||||
UserMapper = container.Get<IUserMapper>()
|
||||
PlexUserRepository = container.Get<IPlexUserRepository>(),
|
||||
LocalUserRepository = container.Get<IUserRepository>()
|
||||
};
|
||||
|
||||
FormsAuthentication.Enable(pipelines, formsAuthConfiguration);
|
||||
CustomAuthenticationProvider.Enable(pipelines, config);
|
||||
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
|
||||
ServicePointManager.ServerCertificateValidationCallback +=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue