Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring security SavedRequestStataWareAuthenticationSuccessHandler在_Spring Security - Fatal编程技术网

Spring security SavedRequestStataWareAuthenticationSuccessHandler在

Spring security SavedRequestStataWareAuthenticationSuccessHandler在,spring-security,Spring Security,我已经扩展了SavedRequestAwareAuthenticationSuccessHandler,以创建一个处理程序,通过覆盖AuthenticationSuccess来跟踪用户登录等。不幸的是,之后的URL部分似乎被存储在会话中的ExceptionTranslationFilter删除,以便在成功登录后使用。这对我来说是个大问题,因为我的应用程序大量使用Ajax,我正在使用url后面的部分来标记应用程序状态,启用书签以及使用后退/前进按钮等进行导航。 有人有什么想法吗?URL的片段部分没

我已经扩展了SavedRequestAwareAuthenticationSuccessHandler,以创建一个处理程序,通过覆盖AuthenticationSuccess来跟踪用户登录等。不幸的是,之后的URL部分似乎被存储在会话中的ExceptionTranslationFilter删除,以便在成功登录后使用。这对我来说是个大问题,因为我的应用程序大量使用Ajax,我正在使用url后面的部分来标记应用程序状态,启用书签以及使用后退/前进按钮等进行导航。
有人有什么想法吗?

URL的片段部分没有发送到服务器。看,这也涵盖了愚蠢的我,谢谢你的回答。我通过在登录页面的cookie中存储url的锚定部分来解决这个问题。这是因为当浏览器从请求的页面重定向到登录页面时,url的锚定部分仍然存在。我想这是解决这个问题的唯一办法