Hi,
We implemented the Blazor app as a SaaS in microservice template.
I have a user account in all the Tenants and Linked the accounts. while switching the accounts the switched user not loading the switched user context after opening the blazer app, it switching user context only after reloads the page
after reload (refresh) the page it showing actual switched user If you're creating a bug/problem report, please include followings:
- ABP Framework version: v7.2.2
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace: no error message
- Steps to reproduce the issue:" create user in different tenants and link the accounts then try to switch the user
12 Answer(s)
-
0
hi
Can you share the full steps so I can reproduce it in a new template project?
Thanks
-
0
hi
Can you share the full steps so I can reproduce it in a new template project?
Thanks
- Created the new application using microservice template, and UI frame work Blazor WebAssembly
- Create multiple Tenants
- created same user in all the Tenants
- link the user accounts with user created under Host
- Login as Host user
- Then using My Account -> linked Users -> Login as This user from different Tenant
- then open the blazor app it still showing the host user until refresh the page
Thanks
-
0
Thanks I will check it.
-
0
hi
Are you login linked user on
Account/Manage
page of the AuthServer website?https://localhost/Account/Manage
-
0
-
0
hi
You can redirect to a special page of blazor and re-login on the page.
eg
Navigation.NavigateToLogin("authentication/login");
-
0
Hi,
Am able to redirect the the Blazor app, but it's not taking the latest user account what i switched.
Thanks
-
0
hi
it switching user context only after reloads the page
I mean you can reload the page by code.
https://support.abp.io/QA/Questions/5107#answer-3a0b692f-e52a-cde1-f2b7-cf0f255391e1
-
0
Hi,
after login into auth server can we redirect to Blazor app from auth server?
-
0
-
0
Hi,
yes previously working fine with version 5.3.2.
But after upgraded to vrsion 7.2.2 still able to redirect to Blazor app, but the user context not updating after redirected to Blazor App. only when i refresh the blazor app then only taking latest user context.
-
0
hi
Did you try this?
Navigation.NavigateToLogin("authentication/login");