Object - http : InboundAuthHandler

The representation of an inbound authentication handler for HTTP traffic.

canHandle

(Request req)

returns boolean

Checks if the request can be authenticated with the relevant InboundAuthHandler implementation.

Parameters

  • req Request
  • The Request instance.

  • Return Type

    (boolean)
  • Returns true if can be authenticated. Else, returns false.

handle

(Request req)

returns boolean | error

Tries to authenticate the request with the relevant InboundAuthHandler implementation.

Parameters

  • Return Type

    (boolean | error)
  • true if authenticated successfully, else false or, error in case of errors