Object - auth : OutboundBasicAuthProvider

Represents the outbound Basic Auth authenticator.

Constructor

__init

(Credential credential)

  • credential Credential
  • The credential configurations.

Methods

Fields

  • credential Credential
  • The credential configurations.

generateToken

()

returns string | AuthError

Generates a token for Basic authentication.

  • Return Type

    (string | AuthError)
  • The generated token or the AuthError if an error occurred during validation.

inspect

(map data)

returns string | AuthError | ()

Inspects the incoming data and generates the token for Basic authentication.

Parameters

  • data map
  • Map of the data, which is extracted from the HTTP response.

  • Return Type

    (string | AuthError | ())
  • The String token, the AuthError occurred when generating the token, or () if nothing is to be returned.