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)

public UserCredential(
	string userName,
	string password
)

Parameters

userName
Type: System.String

Identifier of the user application requests token on behalf.

password
Type: System.String

User password.

Return to top
Show: