Open
Description
Describe the bug
We have multiple problems with dashboard access related to multi tenancy:
- Dashboard doesn't not give an option to select a tenant every single time, instead it keeps default tenant (or last selected tenant) in user cookie.
- When we login to dashboard, it starts with defaultRoute but this defaultRoute is not the one specific to the default tenant (or last selected tenant). For example, we have three tenants: A, B (default tenant) and C, and when we login it lands on the defaultRoute of tenant A, while expectation is to land at defaultRoute of tenant B.
To Reproduce
Pre-requisites:
- We have two custom tenants "cadm" and "e911", and e911 is the default tenant (or last selected tenant)
- We have disabled "Global" and "Private" tenants
Steps to reproduce the behavior:
- Go to Dashboard
- Click on Single Sign-on
- See defaultRoute belonging to "cadm" tenant
- See error "could not locate that dashboard" which is understood as it belongs to a different tenant "cadm" other than the default/selected tenant "e911":
Expected behavior
- Dashboard should give an option to select a tenant every single time.
- When we login to dashboard, the defaultRoute should be in sync with the default tenant (or last selected tenant).
OpenSearch Version
2.4.0
Dashboards Version
2.4.0
Plugins
No custom plugin enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
- OS: [e.g. iOS]
- Browser and version [e.g. 22]
Additional context
Add any other context about the problem here.