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:

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.

  • 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?

  • 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?

  • 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?

  • User Avatar
    0
    Dicky.tech@gmail.com created

    hi

    use tenant resolvers

  • User Avatar
    0
    jon.hallam@managed-desktop.com created

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

  • User Avatar
    0
    AndrewT created

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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

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

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