Skip to content

RestClient.AuthenticateBasic

Overview

RestClient RestClient.AuthenticateBasic ( userName, password )
Authenticates the client with HTTP Basic mechanism.

Arguments

String userName

User name to be sent. Cannot be null or empty.

String Password

Password to be sent.

Remarks

  • HTTP Basic method is considered as non-secure mechanism. Password sent is almost in clear text format.
  • Specifying user name and password from scripting environment is not recommended. RestClient.Authenticate method automatically resolves the credentials from domain settings and more secure.

Examples

See Also