song-of-the-day/song_of_the_day/Auth/LdapAuthenticationService.cs

15 lines
427 B
C#

public class LdapAuthenticationService : IAuthenticationService
{
private readonly IConfiguration _configuration;
public LdapAuthenticationService(IConfiguration configuration)
{
_configuration = configuration;
}
public bool Authenticate(string username, string password)
{
var ldapInstance = LdapIntegration.Instance;
return ldapInstance.TestLogin(username, password);
}
}