72
Views
6
Comments
Solved
Multi-tenant Application x Anonymous Page

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.


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

UserImage.jpg
Cleiton Giovanni Moretti - KeepOK Consultoria LTDA.

Wow! Excellent suggestion! Surely this will work. Thank you very much!!

2025-10-18 11-13-53
Ramesh subramanian

Hey,

Maybe the solution in this post helps you:https://www.outsystems.com/forums/discussion/54354/reactive-web-and-multi-tenant/

Thank you,

Ramesh

UserImage.jpg
Cleiton Giovanni Moretti - KeepOK Consultoria LTDA.

Not. This post doesn't solve my question :(

2018-01-05 02-53-30
Grayson Udstrand

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? 

UserImage.jpg
Cleiton Giovanni Moretti - KeepOK Consultoria LTDA.

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!

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

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

UserImage.jpg
Cleiton Giovanni Moretti - KeepOK Consultoria LTDA.

Wow! Excellent suggestion! Surely this will work. Thank you very much!!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.