Table of Contents

Codeunit "Http Authentication Basic"

ID 2359
Namespace: System.RestClient

Implements

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

Initialize

Initializes the authentication object with the given username and password

procedure Initialize(Username: Text, Password: SecretText)

Parameters

Name Type Description
Username Text

The username to use for authentication

Password SecretText

The password to use for authentication

Initialize

Initializes the authentication object with the given username, domain and password

procedure Initialize(Username: Text, Domain: Text, Password: SecretText)

Parameters

Name Type Description
Username Text

The username to use for authentication

Domain Text

The domain to use for authentication

Password SecretText

The password to use for authentication

IsAuthenticationRequired

Checks if authentication is required for the request

procedure IsAuthenticationRequired(): Boolean

Returns

Type Description
Boolean

Returns true because authentication is required

GetAuthorizationHeaders

Gets the authorization headers for the request

procedure GetAuthorizationHeaders(): Dictionary of [Text, SecretText]

Returns

Type Description
Dictionary of [Text, SecretText]

Returns a dictionary of headers that need to be added to the request

See also