thefrontside / simulacrum

A simulation platform for use during testing, during development and for high-fidelity application previews
85 stars 14 forks source link

Can't authorize through auth0 in a backstage app by using Cypress and auth0 simulation #136

Open wKich opened 2 years ago

wKich commented 2 years ago

For some reason, the authorization through auth0 simulation doesn't work in tests with Cypress.

wKich commented 2 years ago

We tried to investigate it and used different suggestions to find the source of the problem. I don't know well auth0, so @dagda1 could you please correct me if said something wrong.

From all discussions, I noticed that there are a couple of possible sources of that problem:

dagda1 commented 2 years ago

@wKich it is very weird. we've used it in other repos that did not use the new window approach without these problems.

the new window seems to be causing problems. i think in general we need lots of logging throughout simulacrum that you can turn off and on so we can debug easier.

i have a pr PR that logs each express request