Object - http : OutboundAuthHandler

The representation of an outbound authentication handler for HTTP traffic.

prepare

(Request req)

returns Request | AuthenticationError

Prepares the request with the relevant authentication requirements.

Parameters

  • req Request
  • The Request instance.

  • Return Type

    (Request | AuthenticationError)
  • Returns the updated Request instance or the AuthenticationError in case of an error.

inspect

(Request req, Response resp)

returns Request | AuthenticationError | ()

Inspects the request and response and evaluates what is to be done.

Parameters

  • req Request
  • The Request instance.

  • Return Type

    (Request | AuthenticationError | ())
  • Returns the updated Request instance, the AuthenticationError in case of an error, or () if nothing is to be returned.