In a multi-tenant application (React), is it possible force a tenant on a page that does not require login (anonymous)?
I tried use the TenantSwitch function, but I was unsuccessful.
Hi,
Maybe you could consider your login flow, to always login automatically on the public tenant pages with a predefined user per tenant. Your public accessible screens need to have at least the registered role selected in this case.
Regards,
Daniel
Wow! Excellent suggestion! Surely this will work. Thank you very much!!
Hey,
Maybe the solution in this post helps you:https://www.outsystems.com/forums/discussion/54354/reactive-web-and-multi-tenant/
Thank you,
Ramesh
Not. This post doesn't solve my question :(
I am assuming the use case is you want to present information for a specific tenant? If so, tenancy really only works with logged in users. If you need to filter info by tenant (and you know which tenant) you can expose the tenant ID for the entities you are trying to present and just use a filter. Is this the only anonymous screen in the application?
Hii. It is a sales application, and each Tenant's product catalog must be public. It seems to me that anonymous pages assume the default tenant, and even using a parameter on the anonymous page, mentioning the tenant and calling the TenantSwitch function, the command has no action on the anonymous page. Is this really the expected behavior? Can't an anonymous page, without exposing the tenant, be changed? Tnks!