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

Unable to open Iframe with the universal login even after setting Environment Variable: AUTH0_COOKIE_SAME_SITE='none' #1763

Open
6 tasks done
nimalhot opened this issue Jul 16, 2024 · 0 comments

Comments

@nimalhot
Copy link

nimalhot commented Jul 16, 2024

Checklist

Description

Hi Team,
I have followed few articles on universal login or auth0 login page to be used in the iframe from my app hosted on azure websites deployed as an sample app given on nest Js sample code base from Auth0 starter kit.

There have been a question on login page iframe issue with the universal login. where Adam Mcgrath has rasied the PR to respect AUTH0_COOKIE_SAME_SITE='none' to support iframe to show the login page in the iframe. However, I used this env. variable but it seems like the option is not working on the deployed version.

Request you to kinfly help on this as we are looking for this feature eagerly.

Thanks,
Nikhil M

Reproduction

  1. Login to Auth0 tenant and created an app in the tenant with all the basic config on callback and logout url
  2. Downloaded the NextJs sample app from the starter it and tried using it with the configuration setup. The app worked as expected.
  3. Updated the env. configuration with AUTH0_COOKIE_SAME_SITE='none'.
  4. Updated the Content page.jsx to render the login page in the iframe with the /api/auth/login page as source url.
  5. Tested the app locally and as well as in the deployed version. The iframe is not loading the loading page with the universal login.

Expectation: Iframe should load the login page of Auth0 with the universal login
Reality: The login page from auth0 is still getting blocked by the iframe.

Additional context

Post/Issue referred: https://community.auth0.com/t/using-auth0-login-in-iframe/91547/9

nextjs-auth0 version

3.5.0

Next.js version

13.5.1

Node.js version

18.10 LTS version

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

1 participant