Open Closed

Tenant Login Without Selecting Tenant and without a Hostname specific for the URL #917


User avatar
0
jon.hallam@managed-desktop.com created

Hi,

I would like users to just login to the login form. the process then workout that tenant the user belongs to and set the tenant correctly.

I wish not to have them select the tenant or have a URL that denotes the tenant.

  • ABP Framework version: v4.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

8 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    There is no way to check the username and password without a tenant or host.

    Especially tenants and host use different databases.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    jon.hallam@managed-desktop.com created

    really? this isnt great surely theres a way round this?

    I dont want to user to pick a tenant or for me to make subdomains for each tenant.

    please can you look again at if this can happen?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    If the same username exists in the database of the tenant and the host, which one should we authenticate if we don't konw tenant or host?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    AndrewT created

    If the user is unique across the system, eg their email address is their username so would be unique regardless of being Host or Tenant.

    If that "username must be unique" flag was set and used to determine/login for a tenant, it would be easy to stop a user witht he same username being setup twice.

    How would you then set the tenant for that users session?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Dicky.tech@gmail.com created

    hi

    use tenant resolvers

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    jon.hallam@managed-desktop.com created

    hi can you point out how to do this plesse? thanks in advance!

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    AndrewT created

    @maliming - I see this is closed, but still not answered? Can you help?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://support.abp.io/QA/Questions/1020#answer-c2db31bb-d334-9fd6-53e4-39fb98308bce

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.