Suppose I have 3 sites that I want to have SSO in, site1.com, site2.com, and auth.com. SSL is always required.

According to how SiteMinder cookies are described here, one of those domains would be the associated "master cookie" domain, and others would redirect to that domain in case of an authentication failure.

How things currently work

  1. To prevent clickjacking, the login page for auth.com has the NoFrames script and a frames buster script implemented for older browers.

  2. After the client logs into site1.com or site2.com, AJAX kicks in and does some operations (polling etc). During this time, Javascript may get a an error saying that the session is invalid. This error occurs while using AJAX. (if it occurred while browsing, there would be a redirection and this entire question doesn't apply)

  3. At this point I can either refresh the page and redirect, or tell the user to login again at auth.com, but then I lose my in-memory application state.

A new/seamless approach for the end-user

As a workaround I'm considering using Javascript to create an iFrame to auth.com/RefreshOnly (iFrames okay) POSTing my session data. Auth.com/RefreshOnly will see the cookie for its domain and, if it chooses, redirect to my origin site1.com, instructing it to update my current cookie.... all within a hidden iFrame.


Is this limited usage of iFrame permissible in an IDP/authentication provider? (not exclusive to Siteminder)

  • ever find a solution? I'm up against the same problem. – Rhubarb Apr 23 '17 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.