Interface for web-service call authorizers.
Methods
-
isAllowed(call)
-
Tell if the call is authorized to proceed. Returning
false
will cause either a 401 (Unauthorized) or a 403 (Forbidden) HTTP response depending on whether there is an authenticated actor or not.Parameters:
Name Type Description call
module:x2node-ws~ServiceCall The call. Returns:
true
if the call is allowed.- Type
- boolean | Promise.<boolean>