I want to embed a small web-app across various third party domains, much like Disqus does with their commenting app. The users need to authenticate, and this needs to persist across the domains.
I noticed that Disqus uses an <iframe>
to deploy their app. I assume that is so that they can use cookies to maintain a session for their users. Correct?
Is there any way to get around using an iframe for this use case? I was thinking perhaps about using a Web Component with a JWT token from localStorage. But as I understand, localStorage is restricted to a domain. You would need a hidden iframe to share the localStorage across domains.
Any other method that would work across third party domains?