grails-spring-security-core icon indicating copy to clipboard operation
grails-spring-security-core copied to clipboard

Make plugin compatible with multi tenancy in grails > 3.1

Open rkimaoui opened this issue 8 years ago • 1 comments

AuthenticationToken resolving doesn't support MultiTenant implementation. Like:

import grails.gorm.MultiTenant

class AuthenticationToken implements MultiTenant<AuthenticationToken> {

    Long tenantId
    String username
    String token

    static constraints = {
    }
}

With this implementation, i get this error on login:

ERROR: column this_.tenant_id does not exist

Do you have an idea how to solve this plz ?

In my application, User domain class is multitenant so AuthenticationToken must be too.

rkimaoui avatar Jan 24 '17 01:01 rkimaoui