cancel
Showing results for 
Search instead for 
Did you mean: 

Guest authentication in Multi tenancy for document download

loftux
Star Contributor
Star Contributor
To enable anonymous download for the guest user using the GuestDownloadContentServlet is simple if you are running without multi-tenancy.

But how do you solve this if you have a multi-tenant setup?
For what I can tell, there is no way in the current content servlets to specify what tenant domain the content resides in, something you need to know to know where to look for the content.

So I guess I need to create my own download servlet, or download webscript.
For webscripts you can specify runas in config declaration, so I suppose runas=guest@tenantname would work (not tested), but then I would need to declare several webscripts, one for each tenant. Could be better if tenant domain can be set at runtime for the webscript.
This can probably be done with a java-backed webscript, any pointers on how to set a guest user for specific tenant in java?
1 REPLY 1

janv
Employee
Employee
FYI - another option in the future will be to use shared links via Alfresco Share (these will also work with MT) as mentioned here: https://forums.alfresco.com/en/viewtopic.php?f=47&t=44023

Regards,
Jan