loopback4-dynamic-datasource icon indicating copy to clipboard operation
loopback4-dynamic-datasource copied to clipboard

The middleware should be invoked through the preinvoke chain

Open yeshamavani opened this issue 1 year ago • 1 comments

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

yeshamavani avatar Mar 18 '24 08:03 yeshamavani

creating a separate middleware in the @sourceloop/core that will be a part of the preinvoke middleware chain and will call the action provider

yeshamavani avatar Apr 08 '24 10:04 yeshamavani