array of roles to check
authentication secret
injected authenticate function
target field to get the org id
injected api use to handle the organization related operations
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator is used to check if the user is in the organization roles by applying the following steps in sequence:
Get the orgId from context
Authenticate the request
Get the user organizations by role (organizationAPI.getUserOrganizations)
Check if the user is in the organization roles
Return the status code
400 NBError Bad Request
401 NBError Unauthorized
403 NBError Forbidden
Generated using TypeDoc
Is user in organization roles validator