Menu

Re-authenticate remember-me users

Help
2006-11-03
2013-04-15
  • Warner Godfrey

    Warner Godfrey - 2006-11-03

    I would like to re-authenticate users authenticated using a remember-me cookie. The behaviour I am looking for is similar to the SourceForge login where you can auto-login using a remember-me cookie but if you attempt to edit your user details you are prompted to re-enter your username/password.

    I am not sure if this is possible using SecurityFilter as I haven't seen any examples or discussions on this topic. Does SecurityFilter support this behaviour?

    Regards,
    Warner

     
    • Torgeir Veimo

      Torgeir Veimo - 2006-11-06

      I'd suggest you have a session variable set if the user has authenticated a second time. As for doing the second time authentication, I'd suggest doing it without using securityfilter. You can either enforce the second time authentication using a servlet filter which checks for the presence of the defined session attribute, or just have the edit action code check it.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.