Interface Http Authentication in 26

App
System Application
Namespace
System.RestClient

Procedures, 2

Versions171819202122232425262728latest

Source242526272829

Source in 26

src/System Application/App/Rest Client/src/Authentication/HttpAuthentication.Interface.al17 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.RestClient;

/// <summary>An interface to support different authorization mechanism in a generic way.</summary>
interface "Http Authentication"
{
    /// <summary>Indicates whether authentication is required for the request.</summary>
    /// <returns>True if authentication is required, false otherwise.</returns>
    procedure IsAuthenticationRequired(): Boolean

    /// <summary>Gets the authorization headers for the request.</summary>
    /// <returns>A dictionary of authorization headers.</returns>
    procedure GetAuthorizationHeaders(): Dictionary of [Text, SecretText]
}

Procedures, 2

NameParametersReturnsAccessObsolete
IsAuthenticationRequired()Booleanpublic-
GetAuthorizationHeaders()Dictionarypublic-