Activities of "rivz"

Question
  • ABP Framework version: v8.1.1
  • UI Type: Blazor Server
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Is it possible for a tenant to impersonate other tenants? I know that host can impersonate other tenants, but lets say i have "tenant1", "tenant2" and "tenant3" I would like to have "tenant2" to access "tenant1" and "tenant3" admin account. Similar to user impersonation.

  • ABP Framework version: v8.1.0
  • UI Type: Blazor Server
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: after updating from 8.0.3 to 8.1 i have issues with loging in with tenant. When i log in with default admin with no tenant, i can log in and do everything. When i go to the SaaS - tenants menu and try to "log in with tenant" i get the following error :
10:08:30 WRN] Tenant not found!
Volo.Abp.BusinessException: Tenant not found!
   at Volo.Abp.MultiTenancy.TenantConfigurationProvider.GetAsync(Boolean saveResolveResult)
   at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
[10:08:30 WRN] Code:Volo.AbpIo.MultiTenancy:010001
[10:08:30 WRN] Details:There is no tenant with the tenant id or name: 3a091d98-a19f-e032-bf9e-327aeaeb6099

Same thing happens when i try to log in from the login page. The tenant is in database (SaasTenants and AbpTenats(since i stareted with framework but changed to commercial)), redis cahce cleared, cookies cleared. It looks like the authserver finds all the login info needed, but somehow sends the wrong info to blazorserver and fails. (There is no tenant with the tenant id or name: 3a091d98-a19f-e032-bf9e-327aeaeb6099)

as you can see, authserver accepts that this tenant exists, but when i try to log in, i get the error.

when using locally with safari i get different error, doesent happen when i use it in docker, then i will get the no tenant error.

[14:37:29 WRN]'.AspNetCore.Correlation.z52e57ZZkOyZbkXJmmQ4btSergAyQ9GbJUYKr5PXDzU' cookie not found.
[14:37:29 INF] Error from RemoteAuthentication: Correlation failed..
[14:37:29 ERR] An unhandled exception has occurred while executing the request.
Microsoft.AspNetCore.Authentication.AuthenticationFailureException: An error was encountered while handling the remote login.
 ---> Microsoft.AspNetCore.Authentication.AuthenticationFailureException: Correlation failed.
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

i think i did the migration correctly

Question
  • ABP Framework version: v8.0.1
  • UI Type: Blazor Server
  • Database System: MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

What is the best way to change my db provider from mongo to postgres? Its okay if i lose any data, i am just figuring if there is an optimal way to do this without rewriting the whole project. Last thread i found about it was 4 years ago and i really hope the times have changed and there is some info on how to do that. ABP documentation shows how to change between EFC providers, but nothing how to go from mongo to postgres.

Zobrazeno od 1 do 3 z celkem 3 záznamů
Made with ❤️ on ABP v8.2.0-preview Updated on března 25, 2024, 15:11