Hi,
We are getting issue with Exceptions while using ABP InsertSync.
For any error/exception came from SQL not getting moved in exception code and not going in catch statement.
This is happening whenever we are passing false in Repository.InsertAsync().
As shown below in Option 1 code. Please suggest, we need to send custom error number like - throw new CivitException(ex.Message, "2601");
Same is working fine if we are calling direct EfCoreException
-------------------------------------------------------------------- +@ AbpException Code starts -------------------------------------------------------------------- //Option1 :- passing inner async parameter as "false".
public async Task AddOrganization(OrganizationDto input)
{
try
{
var data = ObjectMapper.Map<OrganizationDto, Setup.Organization.Organization>(input);
await _orgContactRepository.InsertAsync(data, false);
}
catch (DbUpdateException ex)
{
throw new CivitException(ex.Message, "2601");
}
}
//Option2 :- passing inner async parameter as "true"
public async Task AddOrganization(OrganizationDto input)
{
try
{
var data = ObjectMapper.Map<OrganizationDto, Setup.Organization.Organization>(input);
await _orgContactRepository.InsertAsync(data, true);
}
catch (DbUpdateException ex)
{
throw new CivitException(ex.Message, "2601");
}
}
------------------------------------ +@ AbpException Code Ends --------------------------------------------------------------------
----------------------------------- +@ EFCoreException Code starts --------------------------------------------------------------------
public override int SaveChanges()
{
try
{
var data=base.SaveChanges();
return data;
}
catch (DbUpdateException e)
{
Console.WriteLine(e);
throw;
}
}
------------------------------------------------ +@ EFCoreException Code ends --------------------------------------------------------------------
Hi, Please help by replying few questions on SaaS/ Edition/ Features?
Regards,
We want to restrict user multiple login session at time, there should be single active login session.
user should be allowed to be logged in to one application from only one browser at a time. When user logs in then server should check his current active sessions to the same application from other browsers. If there is then log out from everywhere else and keep only newest session.
so any provision available in abp.io commercial module ?
we want to define Jurisdictions of each user and want to use in work flow/approval flows. do you have any provision available in abp framework?
How to implement you directory and file APIs/ functions if Storage and web servers are different? Do you have any recommendation or sample code for same?
in Abp Commerical can we login without a username and password to login?
Example:- there are two applications, 1. AbpCommercial and 2. Normal MVC App In the MVC application, we implemented the register and login pages and call the Abp commercial's API for registration and login (Abp Commercial token API) In the MVC application, generate a token from Abp Commercial using password grant_type and login based on Cookies now, we want to login in ABP commercial using the MVC application, is it possible?
We are looking for creating/updating a tenant without using host admin login. we have created custom web forms for tenant registration which are publicly available please suggest best practices and related API for the same
We have a requirement of authenticating users with username and password only. we want to disable the tenant query filter for a particular API call (/connect/token) and return tenantId when we access in the token. This filter should not be disabled always.
Example:- in one application, only access the tenant admin. but our the requirement is user does not select the tenant from the dropdown or do not enter tenant name, use only enter the username and password Requirement:- without tenant id validate the tenant admin based on username and password, return tenantId from the user info endpoint, so we can validate the tenantId and role to validate access
Is there any configuration settings to ensure that a format of tokens? we need to configure reference or jwt token in alphanumeric format only, is it possible?