Open Closed

Domain-Based Tenant Resolver Issue in ABP 9.0.4 – Infinite Login Loop (Localhost) & Tenant Login Failure (Deployed) #10383


User avatar
0
Rishi1532 created

Hello ABP Support Team,

We are facing issues with Domain-Based Tenant Resolution while using ABP Framework 9.0.4 (Angular + OpenIddict).

We followed the official ABP community article below **exactly **to implement the domain-based tenant resolver:

https://abp.io/community/articles/how-to-use-domainbased-tenant-resolver-in-abp-with-angular-and-openiddict-v9y8da7v

⚠️ Note: The sample source code provided in the article is based on ABP 10.0.2, while our application is using ABP 9.0.4.

Environment Details

  • ABP Version: 9.0.4

  • Frontend: Angular

  • Authentication: OpenIddict

  • Tenant Resolution: Domain-based tenant resolver

  • Hosting: Localhost (custom domains) / Deployed environment

Source Code (Public Repository)

GitHub repository with full source code and configuration:

https://github.com/RISHI-KH-2611/Test/tree/sourcecode

We recreated a demo project in **ABP 9.0.4 **and followed the exact same implementation and steps as mentioned in the article and the sample project.

Public Deployed URL (For Testing)

https://dentpalqaaumtech.org/

  • Username / Password: ABP default credentials

Issues Observed

1️⃣** Localhost + Custom Domains**

Issue: Infinite login redirect loop

Steps:

  • Run the application locally

  • Configure and access the app using custom domains

  • Attempt to log in as a tenant user

Observed Behavior:

  • Login page continuously redirects

  • Authentication never completes

  • Results in an infinite login loop

2️⃣** Deployed Environment**

Issue: Tenant users cannot log in (Host admin works)

Observed Behavior:

  • Host Admin can log in successfully

  • Tenant users are unable to log in

  • Login either redirects back to the login screen or fails silently after authentication

Expected Behavior:

  • Tenant users should be able to log in based on domain resolution

  • Authentication flow should work consistently for both host and tenants

Request for Assistance

Could you please help us understand:

  1. Whether domain-based tenant resolution behaves differently in ABP 9.0.4
  2. If any additional configuration is required for Angular + OpenIddict in ABP 9.x
  3. Whether this is a known issue or limitation in ABP 9.x
  4. Recommended workaround or fix if upgrading to 10.x is the only solution

No answer yet!
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.2.0-preview. Updated on February 17, 2026, 09:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.