Official Content

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.

Note: 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
Generators:.NET, Java, .NET Framework, Apple, Android.

Note: Available for Apple since GeneXus 16 upgrade 3

See Also

HttpClient data type






Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant