Last updated by brunogh
4 years ago
Acegi Tenant Resolver
To make the multi-tenant plugin work with acegi, you have to install an additional plugin
grails install-plugin multi-tenant-acegi
Config.groovy
Your tenant resolver property should look like this:
tenant {
resolver.type = "acegi"
}User domain class
Whichever User domain class you are using with the acegi plugin should have a property on it called "userTenantId". You will have to manually set this value for each user correctly. Note that you should not annotate your User domain class with @MultiTenant.
Role and Requestmap domain class
Note that Role and Requestmap domain classes will keep annotated with @MultiTenant, the same as the other domain classes.