Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "Goontech"

We have exsting prod application with Host sql db only. Need to seperate/move the one existing tenant(id 2) specific data from host sql db into a new tenant azure sql db.

On newly created sql db for tenant run the migrator but it again seeded/added default host admin and users. Is it possible to authenticate tenant users from host db and tenant data being fetch from tenant db. If not then how could I move existing tenant (id =2) users/data? Please suggest.

Version :API: v11.0.0 | Client: v11.0.0 (Angular + MVC)

On azure web app deployed api swagger post methods call returning below exception(log.txt): Swagger returns 200. PFA.

logs.txt: ERROR 2022-06-05 21:38:02,347 [orker] idateAntiforgeryTokenAuthorizationFilter - The provided antiforgery token was meant for a different claims-based user than the current user. Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The provided antiforgery token was meant for a different claims-based user than the current user. at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateTokens(HttpContext httpContext, AntiforgeryTokenSet antiforgeryTokenSet) at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext) at Abp.AspNetCore.Mvc.Antiforgery.AbpValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context)

P.S. Get calls working fine. Application localhost works as expected, getting above AntiforgeryValidationException for deployed(azure) post methods calls. I tried with clearing cache and using different browsers.

Is it possible to return only byte[] and exclude the other ABP json wrapping fields.? On client byte[] data = Convert.FromBase64String(response.result);

Is it possible to have only byte[] in api response not the extra ABP specific fileds(i.e. targetUrl , unAuthorizedRequest, _abp ...)

so could able to consume from client like.. byte[] data = Convert.FromBase64String(response.DataAsText); byte[] data = response.Data;

Showing 1 to 3 of 3 entries