Quantcast

[multi-tenant] redirect from TenantResolver

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[multi-tenant] redirect from TenantResolver

HolyDolyAndGrails
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [multi-tenant] redirect from TenantResolver

Kimble
One easy fix is to introduce a "fallback" tenant with a known id. Whenever you can't find the appropriate tenant in the database you return this tenant id.
 - Kim A. Betti
Have a nice day!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [multi-tenant] redirect from TenantResolver

HolyDolyAndGrails
This post has NOT been accepted by the mailing list yet.
That's brilliant! I've resolved it by returning 0 if it's null (from project specification tenantId cannot have value 0) and I added an filter which depends on the one provided from plugin. I have there a redirect function available so i do just
redirect( url: urlFromConfig )

Thank you. BTW is there a way to get a response object in library class?
Loading...