Codeunit 70623700 EOS004 API Key Authentication

Codeunit 70623700 EOS004 API Key Authentication

Provides API-key-based authentication.

Methods

Initialize

procedure Initialize(HeaderValue: SecretText)

Initializes the instance with X-API-Key as the header name.

Parameters / Return Value

  • HeaderValue SecretText

    The value for the header.


Initialize

procedure Initialize(HeaderName: Text; HeaderValue: SecretText)

Initializes the instance.

Parameters / Return Value

  • HeaderName Text[]

    The name of the header for the API key.

  • HeaderValue SecretText

    The value for the header.


IsAuthenticationRequired

procedure IsAuthenticationRequired(): Boolean

Parameters / Return Value

  • Returns Boolean

GetAuthorizationHeaders

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

Parameters / Return Value

  • Returns Dictionary[Text,SecretText]


EOS Labs -