mirror of
https://github.com/jellyfin/jellyfin-plugin-ldapauth.git
synced 2024-11-30 09:40:44 +00:00
20 lines
671 B
C#
20 lines
671 B
C#
using MediaBrowser.Controller;
|
|
using MediaBrowser.Controller.Authentication;
|
|
using MediaBrowser.Controller.Plugins;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Jellyfin.Plugin.LDAP_Auth;
|
|
|
|
/// <summary>
|
|
/// Register LDAP services.
|
|
/// </summary>
|
|
public class ServiceRegistrator : IPluginServiceRegistrator
|
|
{
|
|
/// <inheritdoc />
|
|
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
|
{
|
|
serviceCollection.AddSingleton<IAuthenticationProvider, LdapAuthenticationProviderPlugin>();
|
|
serviceCollection.AddSingleton<IPasswordResetProvider, LdapAuthenticationProviderPlugin>();
|
|
}
|
|
}
|