Object - http : InboundAuthHandler

The representation of an inbound authentication handler for HTTP traffic.

canProcess

(Request req)

returns boolean

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

Parameters

  • Return Type

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

process

(Request req)

returns boolean | AuthenticationError

Tries to authenticate the request with the relevant InboundAuthHandler implementation.

Parameters

  • Return Type

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