Someone knows how to open a popup login to authenticate (using spring security) when the user does something that needs to be authenticated and he is not.
For example: Lets imagine the page has one button "buy now" that add the product to the cart and perform the checkout (buy now page), if the user is already authenticated, or, opens a popup for the user perform the authentication.
If the authentication is successful than the spring redirects to the "buy now" page or stays in that page with the popup opened (with an error message "wrong login").
I already searched in google for a kind of solution but without luck.
Someone can point me in the right direction?
Thanks