Hi,
My project have total 7 micro-services out of which 1 is dedicated for SignalR Post deployment other 6 are working fine, but the one which is dedicated for SignalR is giving CORS error. All the appsettings and Host Module logic looks fine as same logic is working for other 6 services. There are no logs in Cloud Watch to check for. Not getting any more details, only this URL in network tab : https://xxx.dev.xxxxx.com/eventsync/hubs/notifications/negotiate?negotiateVersion=1 PFA images for your reference
We have a release planned and it is having very high priority. Please let me know if someone from support team is available for discussion.
Hi,
I have added new Micro-Service into my Microservice architecture application solution.
For CurrentUser
I can only get phone number field
For CurrentTenant
I can only get the Id
[Authorize]
public Task<SampleDto> GetAuthorizedAsync()
{
var user = CurrentUser.UserName;
var tenant = CurrentTenant.Id;
return Task.FromResult(
new SampleDto
{
Value = 42
}
);
}
FYI
abp new XXX.XXXX.XXXXX -t module-pro -csf --no-ui -dbms PostgreSQL -v 4.4.4
Volo.Abp.IdentityServer.Application
in the .csproj file of Application
project, but for my newly created project this package was not installed and also when I tried to install this package I am not able to find it on nuget package manager ( Image for your reference below ) and when I tried editing the .csproj and try to add it there, this package is not getting resolved. i.e. Volo.Abp.IdentityServer.Application
Thanks!!!
Hi,
I need to override AbpTenantAppService.FindTenantByNameAsync()
method.
How do I do it ?
I tried it as per your documentation https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#overriding-a-service-class , but not able to resolve this below issue
These are links to the code I need to override. https://github.com/abpframework/abp/blob/4.4.4/framework/src/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy/Pages/Abp/MultiTenancy/AbpTenantAppService.cs https://github.com/abpframework/abp/blob/4.4.4/framework/src/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy/Pages/Abp/MultiTenancy/AbpTenantController.cs
Thanks you !!!
Hi,
When I click on the Apply database migration
in image 1, I only get message as per image 2 and image 3 shows the network tab
Now, I have created an Event Handler like below, but none of the below methods executes. Debugger also hit on these methods.
public class XYZServiceDatabaseMigrationEventHandler : IDistributedEventHandler<TenantCreatedEto>,
IDistributedEventHandler<TenantConnectionStringUpdatedEto>,
IDistributedEventHandler<ApplyDatabaseMigrationsEto>
{
public async Task HandleEventAsync(TenantCreatedEto eventData)
{
//Some code
}
public async Task HandleEventAsync(TenantConnectionStringUpdatedEto eventData)
{
//Some code
}
public async Task HandleEventAsync(ApplyDatabaseMigrationsEto eventData)
{
//Some code
}
}
Hi,
I have multitenant microservice application. appsettings details are different for each tenant. I wish not to maintain a appsettings file or if I have to then I have to maintain only common settings there. But my other tenant related settings should come from database.
How do I achieve this , any suggestions ?
Hi,
My requirement is similar to this ticket : https://support.abp.io/QA/Questions/1087/DbMigrator-for-multi-tenant--multi-db
But I can't see any resolution on this ticket. Please can you help me with it.
Also If you can answer below question it will be helpful
Hi,
Our application is based on micro-service architecture.
In my application I have
The solution is not implemented by abp.io Microservice template but it was implemented by your guidance and works as expected. Till now we had only one tenant but still multi tenancy was enabled in our application. Now we want to add few tenants to our system and facing below issues.
Issues :
Each of the repository is custom repository https://docs.abp.io/en/abp/4.4/Repositories#custom-repository-interface I also tried to implement custom MultitenancyConnectionStringResolver. https://docs.abp.io/en/abp/4.4/Connection-Strings#replace-the-connection-string-resolver
My Questions :
Please try to give deep explanation as the whole process is bit complex as we are not having the same template as abp.io microservice template
I have implemented override for SignInManager
and have done some custom logic check in CanSignInAsync()
method
If my custom logic fails I thrown Exception
ie. throw new AbpValidationException(...my_error_message...)
On angular side I am not getting any error response in json format to handle, it's directly throwing the below error, below are the details from network tab.
Volo.Abp.Validation.AbpValidationException: Inactive user
at SCV.Litmus.LitmusOverrides.LitmusSigInManager.CanSignInAsync(IdentityUser user) in D:\Litmus\Projects\ar-allocation\SCV.Litmus\aspnet-core\microservices\SCV.Litmus.IdentityServer\LitmusOverrides\LitmusSigInManager.cs:line 56
at Microsoft.AspNetCore.Identity.SignInManager`1.PreSignInCheck(TUser user)
at Microsoft.AspNetCore.Identity.SignInManager`1.CheckPasswordSignInAsync(TUser user, String password, Boolean lockoutOnFailure)
My expectation was something like this : https://docs.abp.io/en/abp/latest/Exception-Handling#validation-errors
{
"error": {
"code": "App:010046",
"message": "Your request is not valid, please correct and try again!",
"validationErrors": [{
"message": "Username should be minimum length of 3.",
"members": ["userName"]
},
{
"message": "Password is required",
"members": ["password"]
}]
}
}
How to get the above type of details by throwing error from SignInManager ?
Requirements
Current situation
I hope you got my requirements clear. Please suggest me the easiest way to achieve this.
How to get selected language for a logged in user i.e. english, chinese etc. at application service level
"tr" "pt-BR" "en" "zh-Hans" "sl"
and where is it stored in db ? i.e.which table ?