Use Case: We need to open our Auth0 Next Js app in a third party app using an iframe. It throws error when using New Universal Login. Secondly, by using Classical login, login call returns error.
Note: Our app works fine when used without iframe
Can we use New Universal Login with an iframe ?
According to the docs,
We are using Classical Universal Login
Disabled Clickjacking for Classical Universal Login from Settings
We can successfully login on a standalone auth0 nextjs app. However, if we use the same app in an iframe we see two network calls:
Login call with url {DOMAIN}/usernamepassword/login ==> Error 403 Payload:
New Universal Login does not support the use of iframes.
Assuming the the iframe and app itself are on different domains, you might want to look into cookies that are being blocked by the iframe. Itβs good to know that your login flow is working outside of the context of an iframe - This definitely narrows it down a bit.
I have switched to classic Universal Login from New Universal Login and also disable the clickjacking for classic Universal Login, but still unable to login with that .
How can I know that which cookies is blocking on iframe?