UserCredential Constructor (String, String)
Applies to: Version: 2.19.208020213, Platform: .NET Desktop.
Constructor to create credential with client id and secret
Namespace: Microsoft.IdentityModel.Clients.ActiveDirectory
Assembly: Microsoft.IdentityModel.Clients.ActiveDirectory (in Microsoft.IdentityModel.Clients.ActiveDirectory.dll)
Syntax
public UserCredential(
string userName,
string password
)
Parameters
userName
Type: System.StringIdentifier of the user application requests token on behalf.
password
Type: System.StringUser password.
See Also
UserCredential Overload
UserCredential Class
Microsoft.IdentityModel.Clients.ActiveDirectory Namespace
Return to top