list of allowed roles eq. ['owner', 'admin']
authentication secrets
injected function to handle the authentication
which field to get the organization id
injected service 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 will check if user is in organization roles by applying the following steps in sequence:
Get organization id from target field
Authenticate user token (authenticate)
Get user organizations with roles (organizationAPI.getUserOrganizations)
Check if user is in organization
Return check result
401 NBError Unauthorized
403 NBError Forbidden
Generated using TypeDoc
Is user in organization roles validator