Set spring security remember me cookie after login via facebook

后端 未结 1 1671
余生分开走
余生分开走 2021-01-16 07:54

I am building a mobile web app that has the option to login via facebook/twitter. I want the app to remember the login via Spring security\'s remember me functionality so th

相关标签:
1条回答
  • 2021-01-16 08:11

    Try to inject the implementation of RememberMeServices interface and then try to do:

    rememberMeServices.loginSuccess(request, response, auth);
    

    Be sure that _spring_security_remember_me parameter is present in the request.

    0 讨论(0)
提交回复
热议问题