Hi, I am having some issues with a cross-domain login not working when 3rd party cookies are disabled. Here is my setup, use "A.com" and "B.com" for the example.
User goes to A.com, if not session on A.com exists user is redirected to B.com to login. They login on B.com which sets a login session on B.com, then redirects the users to A.com A.com does a javascript include of a file on B.com that checks to see if the session exists on B.com, if it does it calls a javascript function on A.com (B.com's codes is being included onto A.com's site so it has access to call A.com's javascript functions) which includes a encrypted user id/timestamp, A.com then redirects to A.com/login/c2n3857293875p987c5(random encryption string) which then decodes the string and logs the users in on A.com
Everything works fine unless you turn off 3rd party cookies. I do not quite understand why? I never set a cookie on one domain from another, I assume it is while trying to read the cookie when it does the javascript include from one server to another, it loads a javascript from from B.com while on A.com, is that correct in that, that is where the problem is happening? Does anyone have any suggestions around this without completely chaning the methodology or is this method just doomed to rely on 3rd party cookies being enabled?
Thank you for your time.