I\'m using ADAL in my code. One thing I want to use is to use different credentials, so I can authorize different users against Azure AD in the console program.
In ADAL .NET v3 UserCredential Constructor is no longer supports the second parameter (password
), instead you need to use UserPasswordCredential class
Example
var credentials = new UserPasswordCredential(userName, password);
var context = new AuthenticationContext(authorityUri);
var authResult = context.AcquireTokenAsync(resource, clientId, credentials).Result;