How to check user credentials of active azure directory?

I have a set of users in the active azure directory, in my program I collect the username and password of the end user and want to check using the active windows azure directory.

Is it possible? pl provide some link.

I know using Power-shell cmdlets that we can verify, I want to know if there are other ways to authenticate the user

+5
source share
4 answers

And, I think, you are trying to implement a single sign-on scenario. Try Adding Web Application Login Using Windows Azure AD ! And if your client does not have an Azure subscription, this example of using multiple Windows Azure Active Directory applications describes the details using the Azure Active Directory Authentication Library. Hope this helps.

+2
source

If someone is still looking for an answer. Support for user authentication without opening a new window for the user was added in ADAL version 2.7.10707.1513-rc by providing an UserCredentialoverloaded function class object AcquireToken.

public AuthenticationResult AcquireToken(string resource, string clientId, UserCredential userCredential);

Here is sample code for powershell. $UserCred = new-object Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential("****@*****", "*****") $result = $AuthContext.AcquireToken($resource,$clientID,$UserCred)

+2
source

, " windows azure" - , , , . , OAuth, ( - ), " " .

, , , , . , , Office 365, , O365, - O365, O365, ( ), , . , .

The same goes for authentication, say, through Facebook or Google - your application will never see the user's password directly. This applies even to logging into StackOverflow, so you saw the workflow.

0
source

Hope this ADAL option also helps.

ClientCredential encryptedCredentials = Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(string.Format("{0}:{1}", "UserX@AdX.OnMicrosoft.com", "PasswordX")));
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", encryptedCredentials);
0
source

All Articles