cancel
Showing results for 
Search instead for 
Did you mean: 

How to redirect to the target URL page when login authentication happens from a pop up

Former Member
0 Kudos

Hi

As a part of our retail website implementation, We have a requirement where after the session gets timed out (due to inactivity or session cookie clean up). A login pop up opens up. After successful authentication, the customer gets redirected to the target URL.

Upon attempt authentication, two calls get generated. One to the spring security handler and other to the target URL (which was attempted to be accessed)

I have seen the StorefrontAuthenticationSuccessHandler, which authenticates the customer and determines the target URL with the "Referer" and "Location" which is a response header attribute.

I have replaced the call to login page to our login pop up, but even after the authentication the request success, the control does not flows to the target URL, but remains on the same page.

Use Case:

  1. User logs in, and goes to addresses.

  2. The session times out.

  3. The user clicks on my-orders

  4. A login pop up is opened.

  5. After successful authentication, the customer is redirected to the my orders page

Any hints please.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

any news on this? we're interested too