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

Support for Iframe embed and third party cookie blocking. #41

Open
sharma-manish opened this issue Oct 19, 2021 · 1 comment
Open

Support for Iframe embed and third party cookie blocking. #41

sharma-manish opened this issue Oct 19, 2021 · 1 comment
Labels
question Further information is requested

Comments

@sharma-manish
Copy link

Most browsers are aggressively blocking cookies when page belonging to different TLD is loaded in an iframe. This also impacts OIDC based integrations where application page is embedded in other portals inside iframe. The current implementation of nginx relies on opaque token sent as cookie.

Are there any plans to provide an alternate option. Some of possible things could be:

  1. Fallback to local/session storage if cookie support is not detected.
  2. Provide a parameter for opening the IDP page in a popup so that the cookies created by IDP are treated as First Party.
@tippexs tippexs added the question Further information is requested label Oct 19, 2021
@tippexs
Copy link
Contributor

tippexs commented Nov 1, 2021

Sorry for the late response. Can you share some more Information about your architecture? Feel free to use example domains but I would like to better understand the use case and where the iFrame comes to play.

To question #1: the opaque cookie is generated while sending the response using the set-cookie header. We do not have access to the browsers local/session storage.

#2: we are „opening“ the login page based on a browser redirect if the user is not authenticated. The popup idea can not be handled by the relaying party alone. This would require some more integration in your application.

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

No branches or pull requests

2 participants