Checklist
Describe the problem you'd like to have solved
We're in the process of implementing an own logic before and after sending requests to Auth0. The auth0 management client already offers the mechanism of middlewares, but we can't inject them when instantiating a new ManagementClient.
(The reason why we need to use an own middleware is, that we want to implement an own logic of rate-limiting per client to avoid global api limits)
Describe the ideal solution
Let us pass additional middlewares when instantiating the ManagementClient. And export the interfaces that we can use for pre and post functions (RequestContext, ResponseContext, etc.)
Alternatives and current workarounds
Creating an own copy of the ManagemetnClient, extending the ManagementClientBase and copy the TokenProvider because it's not exported from Auth0 SDK.
Additional context
No response
Checklist
Describe the problem you'd like to have solved
We're in the process of implementing an own logic before and after sending requests to Auth0. The auth0 management client already offers the mechanism of middlewares, but we can't inject them when instantiating a new ManagementClient.
(The reason why we need to use an own middleware is, that we want to implement an own logic of rate-limiting per client to avoid global api limits)
Describe the ideal solution
Let us pass additional middlewares when instantiating the ManagementClient. And export the interfaces that we can use for
preandpostfunctions (RequestContext, ResponseContext, etc.)Alternatives and current workarounds
Creating an own copy of the ManagemetnClient, extending the ManagementClientBase and copy the TokenProvider because it's not exported from Auth0 SDK.
Additional context
No response