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

inspect

(Request req, Response resp)

returns Request | AuthenticationError | ()

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

Parameters

  • Return Type

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