成功验证后,我需要使用用户的GrantedAuthority发送回响应,而不是重定向到successPage。
春天该怎么办?

最佳答案

您可以编写自定义AuthenticationSuccessHandler。签出此tutorial

07-24 09:20