Interface for web-service call authorizers.
Methods
-
isAllowed(call)
-
Tell if the call is authorized to proceed. Returning
falsewill 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 callmodule:x2node-ws~ServiceCall The call. Returns:
trueif the call is allowed.- Type
- boolean | Promise.<boolean>