Because there is no saas module, ABP can't get the tenant data from TenantStore
See:
https://abp.io/docs/latest/framework/architecture/multi-tenancy#configuration-data-store
if you don't want to depend on saas module, you can try override the DefaultTenantStore
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(ITenantStore))]
public class MyTenantStore : ITenantStore, ITransientDependency
{
.....
public Task<TenantConfiguration> FindAsync(Guid id)
{
return Task.FromResult(new TenantConfiguration(){
Id = id,
Name = "...."
});
}
}
Hi,
I see; it could be a problem; we will check it.
Hi,
I'm not sure, but you can try to dynamically change the environment configuration https://abp.io/docs/latest/framework/ui/angular/environment
ABP gets oAuthConfig from EnvironmentService
https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/core/src/lib/services/environment.service.ts
you can try
using(CurrentTenant.Change(tenantId))
using(_currentPrincipalAccessor.Change(claims...)
{
// check if current user is available here
var userId = CurrentUser.Id;
}
could you please share the NG project package.json content
Hi,
Could there be a cause on the ABP side?
I'm not sure, but I have never seen this problem on the support website before.
We can invite you to our datadog.
sure, please
Hi, @asingh @smansuri
If you like , I can share the template code with you via email, but it's not a finished version. only for reference
Hi,
You can change the cache expiration time https://github.com/abpframework/abp/blob/rel-7.4/framework/src/Volo.Abp.AspNetCore.Mvc.Client/Volo/Abp/AspNetCore/Mvc/Client/MvcCachedApplicationConfigurationClient.cs#L55