Class to handle Azure-specific web core operations. Implements the WebCoreService interface.

Implements

Constructors

Properties

config: WebCoreConfig<"azure">

The configuration for the Azure web core.

tokenStorage: AzureStorageService

Methods

  • Retrieves all saved tokens from the storage.

    Returns Promise<{
        [key: string]: string;
    }>

    • An object containing all saved tokens.
  • Logs the user out by clearing the OAuth token from the storage.

    Returns Promise<void>

    • A promise that resolves when the user is logged out.
  • Executes a HTTP request without Credentials.

    Type Parameters

    • T

    Parameters

    • method: string

      The HTTP method.

    • url: string

      The request URL.

    • Optional params: Params = {}

      The request parameters.

    • Optional body: Body

      The request body.

    • Optional config: AxiosRequestConfig<any>

      Additional Axios request configuration.

    Returns Promise<HttpResponse<T>>

    • The Axios response.
  • Saves an OAuth token to the storage.

    Parameters

    Returns Promise<void>

    • A promise that resolves when the token is saved.
  • Sets whether to use the x-lemon-identity header.

    Parameters

    • use: boolean

      True to use the x-lemon-identity header, otherwise false.

    Returns Promise<void>

    • A promise that resolves when the setting is updated.
  • Executes a signed HTTP request.

    Type Parameters

    • T

    Parameters

    • method: string

      The HTTP method to use for the request.

    • url: string

      The URL for the request.

    • Optional params: Params = {}

      The URL parameters for the request.

    • Optional body: Body

      The request body.

    • Optional config: AxiosRequestConfig<any>

      Additional Axios request configuration.

    Returns Promise<HttpResponse<T>>

    • The Axios response.