Spring Security targetUrlParameter does not redirect

前端 未结 6 1551
长情又很酷
长情又很酷 2020-12-19 12:37

I\'m trying to redirect the user back to the page where they clicked the login link. (Pages are read-only for non-authenticated users, but writable for logged in users.) How

6条回答
  •  Happy的楠姐
    2020-12-19 13:07

    LaurentG has already explained this. You can pass the useReferer param in spring. Works fine for both SavedRequestAwareAuthenticationSuccessHandler and SimpleUrlAuthenticationSuccessHandler.

    Here is your modified spring logic:

    
        
        
    
    
    
         
         
         
    
    

提交回复
热议问题