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 | Error

Generates a token for Basic authentication.

  • Return Type

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

inspect

(map data)

returns string | Error | ()

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 | Error | ())
  • The String token, the Error occurred when generating the token, or () if nothing is to be returned.