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


  • userName
    Type: System.String

    Identifier of the user application requests token on behalf.

See Also

UserCredential Overload
UserCredential Class
Microsoft.IdentityModel.Clients.ActiveDirectory Namespace

Return to top