I have a button on login page which redirects to SSO login page. The SSO is different domain. Once I successfully loggedin it is redirecting to home page.
Scenario 1 :
Request url : localhost:6000 action: popup to sign in and Onclick button
Routing page: SSO login username and password action: On successful login
Redirecting to : localhost:6000 [Home page]
Scenario 2:
Request url : localhost:6000/ask action: popup to sign in and Onclick button
Routing page: SSO login username and password action: On successful login
Redirecting to : localhost:6000 [Home page]
Scenario 3:
Request url : localhost:6000/ask action: if SSO already sign in
Routing page: will login without routing to SSO page
Redirecting to : localhost: 6000/ask
In these three scenarios, Both 1 and 3 is working perfectly. In second, after successful SSO login the page should redirect to localhost:6000/ask but it is redirecting to home page instead. Some suggestions on this issue will be greatly helpful.
Environment: React, SpringBoot
Thank you!!