Starts in:
0 DAY
18 HRS
26 MIN
23 SEC
Starts in:
0 D
18 H
26 M
23 S
Open Closed

Questions about tenant management feature #4866


User avatar
0
portx-dev created

Hi

I would like to ask 2 questions about tenant management feature

  1. On my local environment, on Saas > Tenants screen, I created a new tenant, could you tell me the ULR of created tenant will be?
  2. On an existing tenant, I do the following operation
    • Click Actions > Database Connection Strings
    • Uncheck [Use the Shared Database] and input [Default connection string]
    • Click Save
    • Click Actions > ApplyDatabaseMigration

-> [Database migration has been queued and will be applied soon.] is displayed, where/how can I check the migration result?

  • **ABP Framework version:7.1
  • UI type: Blazor
  • DB provider: EF Core

6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    On my local environment, on Saas > Tenants screen, I created a new tenant, could you tell me the ULR of created tenant will be?

    Are you talking about the API URL? you can open the swagger page to check it /swagger.

    [Database migration has been queued and will be applied soon.] is displayed, where/how can I check the migration result?

    There is no notification here, but you can check the database if it's migrated. you can also check the logs.

  • User Avatar
    0
    portx-dev created

    Are you talking about the API URL? you can open the swagger page to check it /swagger.

    No, I mean the web application's login URL of created tenant.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can check this: https://docs.abp.io/en/abp/latest/Multi-Tenancy#determining-the-current-tenant

  • User Avatar
    0
    portx-dev created

    I don’t really understand what I should do from your sent document.

    Btw, I'll explain what I did.

    I am using Adp commercial, and I use Abp Suite to create a new solution with Template type is “Application template”, UI framework is “Blazor Server”. After that, I created a tenant in the local environment as mentioned above, now I would like to log in to that tenant and use it, so I would like to know the login URL. Please tell me the login URL etc.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    There are many ways to determine the current tenant:

    The easiest way is to use the tenant-switching dialog on the login page

    This way, the login URL has not changed

    You can also use the query string:

    For example, the tenant name is testTenant and the login URL is https://localhost:33341/account/login?__tenant=testTenant

    Maybe you would like to use the sub-domain: https://docs.abp.io/en/abp/latest/Multi-Tenancy#domain-subdomain-tenant-resolver

    In this way, the URL should be https://testTenant.localhost:33341/account/login And we have an example: https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver

    So, back to your question

    you can use any way you want, it's up to you. that's why I gave you the link to the document before.

  • User Avatar
    0
    portx-dev created

    Thanks for you answer. That is the one I wanted to know!!!

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06