Is there a way to authenticate through AD without having Azure AD in Universal Windows Application? In web applications, I use this methodology
using System.DirectoryServices.AccountManagement
using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, "my.domain"))
{
bool isValid = pc.ValidateCredentials(username, password);
}
This is how I authenticate users through AD (not Azure) in my web applications. Is it possible to do the same in a universal Windows application?
I found a package called:
using Microsoft.IdentityModel.Clients.ActiveDirectory;
But it looks like Azure is required for this.
Any suggestions?
source
share