Featured post
authentication - Grails acegi plugin remember me not working -
im having problems remember me functionality of grails acegi plugin (version 0.5.3)
the first time login check remember me check box , login. works. shutdown browser , restart , browse app. login page presented user name populated, password empty , remember me check box checked. have expect navigate straight application (http://localhost:8080/application redirects landing page). if try , manually login (enter password) doesnt work, cant past login page.
here login form:
<form action='${posturl}' method='post' id='loginform' class='cssform'> <p> <label for='j_username'>email</label> <input type='text' class='text_' name='j_username' id='j_username' value='${request.remoteuser}' /> </p> <p> <label for='j_password'>password</label> <input type='password' class='text_' name='j_password' id='j_password' /> </p> <p> <label for='remember_me'>remember me</label> <input type='checkbox' class='chk' name='_spring_security_remember_me' id='remember_me' <g:if test='${hascookie}'>checked='checked'</g:if> /> </p> <p> <input type='submit' value='login' /> </p> </form>
securityconfig.groovy
/** remembermeservices */ cookiename = 'grails_remember_me' alwaysremember = false tokenvalidityseconds = 1209600 //14 days parameter = '_spring_security_remember_me' remembermekey = 'grailsrocks'
this default generated behavior. missing simple? need manually setup remembermeservices or something?
i have confirmed "grails_remember_me" cookie being created using chrome developer tools. same behavior firefox.
any ideas? thanks
never got bottom of this. way "fixed" upgrading new spring security plugin.
- Get link
- X
- Other Apps
Comments
Post a Comment