Open Closed

Login as a tenant not working ? #10469


User avatar
0
erkan.uci created

Hi , I was triyng login as a tennats page is not open. and no errors aswell ?


11 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • In ABP, the “Login as tenant / Switch tenant” UI is shown only if multi-tenancy is enabled AND a tenant resolver (cookie/querystring/header/domain) is active. If the page/button does nothing and you see no error, most commonly the UI can’t determine/resolve the tenant context, so it doesn’t open the tenant switch dialog/page.
    1. Ensure multi-tenancy is enabled
    • Check your appsettings.json (Host and AuthServer if you have separated auth):
    {
        "MultiTenancy": {
          "IsEnabled": true
        }
      }
    
    1. Ensure you didn’t remove/clear tenant resolvers
    • Verify you didn’t customize AbpTenantResolveOptions and accidentally clear resolvers (this is a common reason tenant switching disappears/breaks).
    • If you have such configuration, make sure you keep the standard resolvers you need (cookie/querystring/header/domain). For example, don’t do this unless you really mean it:
    Configure<AbpTenantResolveOptions>(options =>
      {
          options.TenantResolvers.Clear(); // <- this can break tenant switching
      });
    
    1. Angular UI: confirm the tenant switch is loaded and tenant header is sent
    • Angular gets the selected tenant from the application-configuration response and then sends it as the __tenant header on requests. If application-configuration is failing or not reachable, tenant switching won’t work correctly.
    • Open browser DevTools → Network and check that GET /api/abp/application-configuration returns 200.
    1. If you use separated AuthServer / multiple apps: align the cache key prefix across apps
    • If tenant resolution works in one service but not the other (e.g., host works, but “login as tenant” fails or silently doesn’t proceed), a known cause is different cache key prefixes between projects/services. Make sure your apps use the same cache prefix / shared cache configuration (especially if using Redis / distributed cache across AuthServer + HttpApi.Host).
    1. If you intentionally customized the login layout/theme
    • If you edited/replaced the Account layout (theme) you might have removed/hidden the tenant switch link (AbpTenantSwitchLink) from the login page. Re-check your Account layout customizations.

    Links (verified)

    • https://abp.io/docs/latest/framework/ui/angular/multi-tenancy
    • https://abp.io/community/articles/4foaup7p

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a GIF or some screenshots?

    Thanks

  • User Avatar
    0
    erkan.uci created

    hi you can find here. Navigating to a non-existing tenant URL opens a blank page and breaks navigation across the app

  • User Avatar
    0
    erkan.uci created

    hi you can find here. Navigating to a non-existing tenant URL opens a blank page and breaks navigation across the app

  • User Avatar
    0
    erkan.uci created

    hi you can find here. Navigating to a non-existing tenant URL opens a blank page and breaks navigation across the app

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What is your abp version?

    Can you share the logs.txt of the authserver and api? Can you share a demo project to reproduce?

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The logs show the Impersonation success. So this may be a problem with Angular.

    Can you share the all HTTP requests HAR file in your Angular?

    see https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems#answer-3a1f7c9e-eb0b-eb9c-3535-1beae8e8ba43

    Of course, you can also share a project, then we can download and check it locally.

    Thanks.

  • User Avatar
    0
    erkan.uci created

    Hi. I sent you via email

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I have checked the har file. But it has no problem.

    Are there any errors in the browser console?

    Can you share a demo app to reproduce?

    Thanks.

  • User Avatar
    0
    erkan.uci created

    Hi, no errors in browser console side. its like kill the session but show blank page..and nor erros

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a demo app to reproduce the problem locally?

    I will download and check it.

    liming.ma@volosoft.com

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.3.0-preview. Updated on March 13, 2026, 12:51
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.