Set spring security remember me cookie after login via facebook

后端 未结 1 1259
终归单人心
终归单人心 2021-01-16 07:39

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:05

    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)
提交回复
热议问题