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
Just an idea, haven't had time to test it. It's client-side only.
XMLHttpRequest
xhr.status
xhr.responseText
(What other options for replacing entire HTML document via W3C DOM)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With