hi
There is no error in identitymodel.txt
Can you delete the current logs.txt
and identitymodel.txt
files from the API wensote?
Then reproduce the unauthorizederror multiple times, And share the full logs.txt
and identitymodel.txt
Thanks.
hi
Can you share a template project that reproduces the issue?
liming.ma@volosoft.com
Thanks.
hi
Can you also share the Logs/identitymodel.txt
?
The authserver domain is obtained from JwtBearerOption.Authority
In Kubernetes, the API website sends HTTP requests to the AuthServer, so please make sure the network is working properly.
In other words, your internal domain names are correctly accessible.
Thanks.
hi
Some of MEX's endpoints and permissions are exposed through PPM.
Can you explain more details about this?
Now, we want to make PPM behave differently depending on whether MEX or OEX is enabled.
It's best for the modules to be completely independent from each other.
Why do your three modules need to reference each other?
Thanks.
hi
The latest code of ValidateAsync
method
public virtual async Task ValidateAsync(Tenant tenant)
{
Check.NotNullOrWhiteSpace(tenant.Name, nameof(tenant.Name));
Check.NotNullOrWhiteSpace(tenant.NormalizedName, nameof(tenant.NormalizedName));
var owner = await TenantRepository.FindByNameAsync(tenant.NormalizedName);
if (owner != null && owner.Id != tenant.Id)
{
throw new BusinessException("Volo.Saas:DuplicateTenantName").WithData("Name", tenant.NormalizedName);
}
}
Thanks @mattw 👍
The XXX.staticwebassets.endpoints.json
of your project may break. Therefore, a rebuild will resolve the issue.
Great news 👍
That's the purpose of the LazyServiceProvider
.
Yes, The UseMultiTenancy
needs to be added after UseAuthentication
I will check and fix it in Studio.
Thanks.