AddAuthentication method

Official Content
This documentation is valid for:

Authenticates one user to a domain, using an authentication type.

Syntax

&DataType.AddAuthentication(Method, Realm, User, Password)

Where:
Method
   Authentication type, properties Basic and Digest can be used. It must be numeric where 0 = Basic, 1 = Digest, 2 = NTLM and 3 = Kerberos.

In Genexus 15 there's an enum domain (HttpAuthenticationType) that represents the possible values.
      
Realm
   Name of the realm. It must be a string.

User
   Name of the user to be authenticated. It must be a string.

Password
   Password of the user. It must be a string.

Scope

Extended data types HttpClient
Languages Web(.Net, Java, .Net Core), Smart Devices(iOS, Android).

 

Note

See also

HttpClient data type