Re: Status of Multi-Tenant Plugins & Compatibility with 2.X
I'm new with Grails and try to write a multi-tenant single db application using Grails 2.1.0.
I installed this plugin 0.8.2 and it seems to work. But I have a problem with the tenant filter
during the authentification. In my solution first the tenant will be evaluated. In the second
step this tenant is an additional filter for the user. The user are unique for the tenant, not
for the application. The user is marked with @MultiTenant.
But the login fails because the call of DomainTenantResolver.resolve(HttpServletRequest request)
occurs after the returning from the authenticate method. The employee will be selected
before this method was called.
What must I change? Is that the intended order of method calls? How can I set the id of the
tenant for the filter?