I have a custom auth provider working against a REST API and now want to implement Remember Me functionality.
Here’s what I have in Config.groovy:
grails.plugins.springsecurity.providerNames = [
'zubAuthenticationProvider',
'rememberMeAuthenticationProvider'
]
grails.plugins.springsecurity.auth.loginFormUrl="/login"
grails.plugins.springsecurity.rememberMe.cookieName="example1"
grails.plugins.springsecurity.rememberMe.key="example1"
I can’t see the peristent cookie actually being set on successful login. Am I missing something in config?
** UPDATE **
I can get a cookie to be created if I add:
grails.plugins.springsecurity.rememberMe.persistent = true
But, that just leads to another problem of not using a database for login storage.
Thanks in advance,
Todd
For posterity sake, I’m going with the following–
Config.groovy
conf/spring/resources.groovy
EgPersistentTokenRepository is based on GormPersistentTokenRepository but has been updated to make REST calls for CRUD functionality rather than GORM.