feat: add user management, refs NOISSUE
This commit is contained in:
15
song_of_the_day/Auth/LdapAuthenticationService.cs
Normal file
15
song_of_the_day/Auth/LdapAuthenticationService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user