简体   繁体   English

成功认证后的自定义响应弹簧安全性

[英]Custom response after success authentication spring security

I need to send back a response with user's GrantedAuthority after success authentication instead of redirecting to successPage. 成功验证后,我需要用用户的GrantedAuthority发送回响应,而不是重定向到successPage。 How can I do this with spring? 春天该怎么办?

You can write a custom AuthenticationSuccessHandler. 您可以编写自定义AuthenticationSuccessHandler。 Check out the this tutorial . 查看本教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM