diff options
| author | Patrick Barron <barronpm@gmail.com> | 2024-01-06 15:43:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-06 13:43:48 -0700 |
| commit | 04dddd3a7b3911ef9a3e83c85aa5419e8db2fa38 (patch) | |
| tree | 252dfb25ca597bd687a49f2870e6a388c766d01d /Jellyfin.Server/CoreAppHost.cs | |
| parent | 5ff7c17daf706250ff6052cfd3de2e946a8e6e00 (diff) | |
Remove UserManager Cache (#10781)
* Remove redundant user cache
* Use DI for IPasswordResetProvider and IAuthenticationProvider
Diffstat (limited to 'Jellyfin.Server/CoreAppHost.cs')
| -rw-r--r-- | Jellyfin.Server/CoreAppHost.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Jellyfin.Server/CoreAppHost.cs b/Jellyfin.Server/CoreAppHost.cs index c12c90a68..93277a981 100644 --- a/Jellyfin.Server/CoreAppHost.cs +++ b/Jellyfin.Server/CoreAppHost.cs @@ -14,6 +14,7 @@ using Jellyfin.Server.Implementations.Security; using Jellyfin.Server.Implementations.Trickplay; using Jellyfin.Server.Implementations.Users; using MediaBrowser.Controller; +using MediaBrowser.Controller.Authentication; using MediaBrowser.Controller.BaseItemManager; using MediaBrowser.Controller.Devices; using MediaBrowser.Controller.Drawing; @@ -78,6 +79,9 @@ namespace Jellyfin.Server serviceCollection.AddSingleton<IActivityManager, ActivityManager>(); serviceCollection.AddSingleton<IUserManager, UserManager>(); + serviceCollection.AddSingleton<IAuthenticationProvider, DefaultAuthenticationProvider>(); + serviceCollection.AddSingleton<IAuthenticationProvider, InvalidAuthProvider>(); + serviceCollection.AddSingleton<IPasswordResetProvider, DefaultPasswordResetProvider>(); serviceCollection.AddScoped<IDisplayPreferencesManager, DisplayPreferencesManager>(); serviceCollection.AddSingleton<IDeviceManager, DeviceManager>(); serviceCollection.AddSingleton<ITrickplayManager, TrickplayManager>(); |
