hi
Based on your requirements, you should download and integrate the Identity Pro source code to implement these new features.
Check the How it works
section to extend yours.
https://abp.io/docs/latest/modules/identity/session-management#how-it-works
hi
I mean you do not need to merge multiple tenant databases into a single database
, You can just switch to query the data of all tenant and host.
hi
The packages exist on https://nuget.abp.io .
https://abp.io/packages https://abp.io/docs/latest/ui-themes/lepton?_redirected=B8ABF606AA1BDF5C629883DF1061649A#nuget-packages
hi
I will ask our colleague.
hi
I'm trying to come up with a good solution to merge multiple tenant databases into a single one for reporting
You can switch the current tenant ID to query the tenant's data. Have you tried this?
hi
You can replace all the basic
packages with leptons
.
Update the module depends
and csproj
files.
hi
You can get the dbcontext
migrate
and seed
the data in OnPreApplicationInitializationAsync
method of your module.
public async override Task OnPreApplicationInitializationAsync(ApplicationInitializationContext context)
{
using var uow = context.ServiceProvider.GetRequiredService<IUnitOfWorkManager>().Begin();
{
var dbContext = await context.ServiceProvider.GetRequiredService<IDbContextProvider<ServerDbContext>>().GetDbContextAsync();
if ((await dbContext.Database.GetPendingMigrationsAsync()).Any())
{
await dbContext.Database.MigrateAsync();
}
await uow.CompleteAsync();
}
await context.ServiceProvider
.GetRequiredService<IDataSeeder>()
.SeedAsync();
}
hi
Have you added the JWT Bearer
authentication to your website?
Please share your start-up module code and the logs of this 401 request.
Thanks.
hi
This seems to be not related to the abp framework.
We don't have much experience.