i474
i474

Reputation: 654

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. How can I do this with spring?

Upvotes: 3

Views: 3222

Answers (1)

Harsh Poddar
Harsh Poddar

Reputation: 2554

You can write a custom AuthenticationSuccessHandler. Check out the this tutorial.

Upvotes: 5

Related Questions