loopback4-dynamic-datasource
loopback4-dynamic-datasource copied to clipboard
The middleware should be invoked through the preinvoke chain
Is your feature request related to a problem? Please describe. Right now the middleware is being called through the default chain due to this it is being called before authentication and authorization in that case, we cant use CURRENT_USER to fetch and identify the tenantId of the user
Describe the solution you'd like change the chain of the middleware
creating a separate middleware in the @sourceloop/core that will be a part of the preinvoke middleware chain and will call the action provider