Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signin with PopUp when inside an IFrame doesnt work. #1743

Open
thejurassic opened this issue Nov 21, 2024 · 1 comment
Open

Signin with PopUp when inside an IFrame doesnt work. #1743

thejurassic opened this issue Nov 21, 2024 · 1 comment

Comments

@thejurassic
Copy link

I’m running my app within an IFrame, as it’s embedded in the Microsoft Dynamics sidebar. I'm using SignInPopup for authentication, but I’m encountering issues due to how the token is returned to the calling window.

Currently, the popup window returns the token to the calling IFrame via storage, which is blocked by browser security settings in IFrame contexts. For this setup, the token should ideally be sent back to the calling IFrame using the browser's postMessage API instead of relying on storage.

Is there an existing configuration or workaround for this? If not, could support for window messaging be considered in a future update? Given the comprehensive nature of this library, I’m hoping I might be overlooking a solution here.

@deanmaster
Copy link

all IFrame access cookie will be restricted by browser in different ways. These is nothing we can do but the IFrame which created can allows to call Storage Access APIs which can ask for cookie access. More elaborate on IFrame Silent Renew with 3rd party cookie in Firefox PoC is done #1735 unfortunately the maintainers do not have time to have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants