Raymond Feng
Raymond Feng
Have you tried to use connector observer - https://github.com/strongloop/loopback-connector-rest/blob/master/test/rest-loopback.test.js#L180? It allows you to intercept the http req/res for the outbound REST call.
Please note the `ctx` object is for the outbound http req/res to your REST API. For your case, maybe the best option is as follows: 1. Add custom remote method...
@bajtos +1. Let's create a user story to implement such enhancements (probably for all http related connectors).
@sam-github I would prefer to get numeric values or the textual metrics in prometheus formats as we expose more metrics beyond appmetrics.
@janpio Thank you for the quick response. Unfortunately, `&pgbouncer=true` does not help.
Hmm, I'm not sure if it's related to https://blog.bullgare.com/2019/06/pgbouncer-and-prepared-statements/
See https://github.com/jaredhanson/passport-oauth1 for a list of configurable properties needed to interact with an oAuth 1.0 provider. For example: ```js { requestTokenURL: 'https://www.example.com/oauth/request_token', accessTokenURL: 'https://www.example.com/oauth/access_token', userAuthorizationURL: 'https://www.example.com/oauth/authorize', consumerKey: EXAMPLE_CONSUMER_KEY, consumerSecret: EXAMPLE_CONSUMER_SECRET,...
I see a few tiers/components to enforce multi-tenancy. 1. Identify the tenant id for a request - virtual host name - request header - url pattern - authentication of user...
FYI: I just built an example application to illustrate multi-tenancy for LoopBack 4 - https://github.com/strongloop/loopback-next/pull/5087.
@fredvhansen Your solution is problematic. 1. Calling `use tenant_x` only configures one connection from the connection pool maintained by mysql connector. 2. Even if you set the limit to 1,...