How to configure Multi-tenant plugin as single-tenant with Spring security plugin as resolver?
- by Fabien Barbier
I can create a secure, multi-tenant web app with Grails by :
setup spring security plugin,
setup Multi-tenant plugin (via multi-tenant install and multi-tenant-spring-security)
update config.groovy :
tenant {
mode = "multiTenant"
resolver.type = "springSecurity"
}
add : Integer userTenntId in User domain
add a domain class for tenant…