Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential does not take 2 parameters?
<p>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.</p>

<pre><code>Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential cred = new Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential("username", "password");
</code></pre>

<p>This is the line I use to create the user credential. I use nuget get the latest ADAL. However, this line shows error:</p>

<blockquote>
  <p>The best overloaded method match for 'Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential.UserCredential(string, Microsoft.IdentityModel.Clients.ActiveDirectory.UserAuthType)' has some invalid arguments</p>
</blockquote>

<p>However, according to
<a href="https://msdn.microsoft.com/en-us/library/microsoft.identitymodel.clients.activedirectory.usercredential.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/microsoft.identitymodel.clients.activedirectory.usercredential.aspx</a></p>

<pre><code>UserCredential(String, String)
Constructor to create credential with client id and secret 
</code></pre>

<p>Anyone knows what I did wrong?</p>

<p>Thanks</p>