Announcement Announcement Module
Collapse
No announcement yet.
Remember me without filter. Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remember me without filter.

    Hi,

    I am trying to implement authentication in JSF bean instead of in the filters.
    I can have everything working but the "remember me" feature.
    I am trying to use the TokenBasedRememberMeServices.

    By looking in the source, my guess is that I have to use this TokenBasedRememberMeServices in my JSF login bean to let it do the job of setting the cookie, is that right?

    Can someone show me how to use this class, provided AuthenticationManager has already done is work and I have a Authentication object?

    Thanks for any kind of help,

    Thomas

  • #2
    Have a look in AbstractProcessingFilter to see how and when RememberMeServices is used.

    Comment


    • #3
      Thank you!

      I looked in the code and realized that the answer was as simple as :

      rememberMeServices.loginSuccess(request, response, auth);

      where auth is the outcome of authenticationManager.authenticate(...)

      Thomas

      Comment

      Working...
      X