How to validate azure active directory user credentials?
api, authentication, azure, azure-active-directory, office365
Solution
In case someone is still looking for an answer. Support for authenticating user without opening a new window for user cred was added in ADAL version 2.7.10707.1513-rc through providing an object of class `UserCredential` to an overloaded function of `AcquireToken`.
public AuthenticationResult AcquireToken(string resource, string clientId, UserCredential userCredential);
Here is a sample code for powershell. ` $UserCred = new-object Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential("****@*****", "*****") $result = $AuthContext.AcquireToken($resource,$clientID,$UserCred) `
Problem
I have a set of users in azure active directory; in my program I will collect the user name and password of an end user, and want to check against windows azure active directory. Is it possible? Please provide some reference. I know we can validate using Power-shell cmdlets; I want to know if there is any other way to validate user credentials.