Hi,
You can create child entities directly in the application service
public class TestAppService: ....
{
public async Task CreateAsync()
{
var entity = ....;
var childEntity = new ChildEntity(_guidGenerator.Create())
}
}
The gateway has no routing for internal services by default, it should be 404 not found.
Hi,
You need to update the gateway configuration to add the chat routes.
Hi,
Can you try to upgrade all the blazorise version to 1.4.1.
Hi,
Remove multi tenancy completely and control Users actions by defining roles permission
I think this is the easiest way
Another idea is to remove multi-tenancy and create a "Company Id" and somehow I filter uses of one company who buy license and VPS servers, if I follow this path, any suggestion how can I filter it
You can check the document: https://docs.abp.io/en/abp/latest/Data-Filtering#defining-custom-filters
Hi,
Can you provide a minimal reproducible project, I will check it. my email is shiwei.liang@volosoft.com
Hi,
You should also to migrate the Dev Environment database
This is a temporary solution, it should be able to pass the current user's credentials
You can try override the HttpContextAbpAccessTokenProvider
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(HttpContextAbpAccessTokenProvider), typeof(IAbpAccessTokenProvider))]
public class MyHttpContextAbpAccessTokenProvider : HttpContextAbpAccessTokenProvider
{
...
public virtual async Task<string?> GetTokenAsync()
{
var httpContext = HttpContextAccessor?.HttpContext;
if (httpContext == null)
{
return null;
}
var token = await httpContext.GetTokenAsync("access_token");
if (token != null)
{
return token;
}
token = httpContext.Request.Headers["Authorization"];
if (!token.IsNullOrWhiteSpace() && token.Contains("Bearer "))
{
return token.Replace("Bearer ", "");
}
return null;
}
}
Hi,
Tenant Id is in Request header.
I believe UserId are in access token.
https://support.abp.io/QA/Questions/6765/CurrentTenant-across-MicroService#answer-3a1109b6-885c-2f65-240c-f25e8d5cd039
Hi,
You need to add the offline_access to scope.
For example:
const oAuthConfig = {
// issuer: 'https://wbidevapi.essentialdemo.com/',
issuer: 'https://localhost:44314/',
redirectUri: baseUrl,
clientId: 'Wbi_App',
responseType: 'code',
scope: 'offline_access Wbi', // add offline_access
requireHttps: true,
};