Object - http : OutboundAuthHandler

The representation of an outbound authentication handler for HTTP traffic.

Methods

Prepares the request with the relevant authentication requirements.

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

prepare

(Request req)

returns Request | AuthenticationError

Prepares the request with the relevant authentication requirements.

Parameters

  • req Request
  • The http:Request instance

  • Return Type

    (Request | AuthenticationError)
  • The updated http:Request instance or else an http: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 http:Request instance

  • resp Response
  • The http:Response instance

  • Return Type

    (Request | AuthenticationError | ())
  • The updated http:Request instance, an http:AuthenticationError in case of an error, or else () if nothing is to be returned