Reputation: 654
I need to send back a response with user's GrantedAuthority after success authentication instead of redirecting to successPage. How can I do this with spring?
Upvotes: 3
Views: 3222
Reputation: 2554
You can write a custom AuthenticationSuccessHandler. Check out the this tutorial.
Upvotes: 5