I've the same problem and I read this thread to find the solution. In my case I've change my EF repository to use IDbContext instead DbContext.
I think the misconfiguration came from AbpSuite, so when you create a new entity you get custom repo based on concrete DbContext. It works fine if you don't need to move into a microservice but if you move later to microservice you need to change this.
For example the CmsKit has this issue in BlogFeature you get
and in Blog you have

With this configuration it's impossible to Replace the DbContext.
I hope this example can be usefull.
Any update?
I've sent data to login
Hi
so we can't use Auth server per tenant? or we can't use auth per tenant with Swagger?
All 2 apps is develop with abp same version with angular auth page.
I prepare a use to see our landscape and send to support
Hi
I can prepare and account for sure, how can I share the login data?
If you write to me an email è reply with credentials.
Can you explain more details? The problem happen in swagger and in angular app but only from 1 app and not in both
Hi
nop the problem is very high.
Our second app read all logs from db.
We check on Postgres SQL and no tenant will be submitted on the query.
Ok
I try to check if this pattern can be use in our scenario
We found another issue.
If we try to execute the audit log from second app we see the host log. We check on DB and tenant filter not flow but if we do the same operation (same tenant) on first app we see only log for our tenant
No I've only one handler but it's in a module that I use twice.
Module product with handler ChangeProductHandler. I use this module on ERP and E-Commerce
I've 1 database anche 2 separate API/UI