Login White-labeling Inheritance does not work between tenant -> customers -> sub customers
Describe the bug Inheritance for login-whitelabeling does not work properly
Let's assume Tenant A which has customer C1. Customer C1 has sub-customer SC1
I configured login-whitelabeling on domain A to be tenant.thingsboard.org (for example) I configured login-whitelabeling on customer C1 to be customer1.thingsboard.org (for example) I don't have any login-whitelabeling on sub-customer SC1
if I login to thingsboard using any valid domain (either the tenant domain or the customer domain) with credentials of a user inside sub-customer SC1. I get redirected to the domain of tenant A (tenant.thingsboard.org) instead of the domain of customer C1 (customer1.thingsbaord.org)
Your Server Environment
- own setup
- Deployment: microservices
- Deployment type: k8s
- ThingsBoard Version
- Professional Edition
- Linux and 4.3.1.3
Your Client Environment
Desktop (please complete the following information):
- OS: MacOS
- Browser chrome
- Version N/A
To Reproduce Steps to reproduce the behavior:
- Tenant A with login whitelabeling enabled with domain tenant.thingsboard.org
- Customer C1 with login whitelabeling enabled with domain customer1.thingsboard.org
- Customer SC1 with no login whitelabeling information
- login with a user inside SC1 sub customer
Expected behavior Redirects to customer1.thingsboard.org instead of tenant.thingsboard.org
Screenshots If applicable, please add screenshots to help explain your problem.
Additional context Please feel free to add any other context about the problem here.
Disclaimer
We appreciate your contribution whether it is a bug report, feature request, or pull request with improvement (hopefully). Please comply with the Community ethics policy, and do not expect us to answer your requests immediately. Also, do not treat GitHub issues as a support channel.
Source: thingsboard/thingsboard