I'll try to make this short and to the point.
I am working with a company to build a bunch of components which will be included into another website (www.domainA.com) using iframes. Our components access own database on our server (www.domainB.com).
The main site (www.domainA.com) is using a SSO application which uses cookies to define/validate a user. Any subsequent pages will need to access these cookies to ensure the user is logged in.
I will need access to those cookies within the iframes to ensure users can interact with them, but again, these components are within a different domain (www.domainB.com)
My question to you is;
Can it be done? Is it safe?
Another idea we threw into the hat was for the main site (www.domainA.com) to pass any parameters through the iframe tag; encrypting the values using hash or maybe some tokens or some other type of encryption.
What do you think? Hoping you guys can give me some advice.
Thanks.