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

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

Open
wKich opened this issue Oct 7, 2021 · 2 comments

Comments

@wKich
Copy link
Member

wKich commented Oct 7, 2021

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

@wKich
Copy link
Member Author

wKich commented Oct 7, 2021

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:

  • The backstage using some old way to authorize by opening a new window instead of creating an iframe
  • Cypress uses its own SSL certificate, so the token couldn't be set

@dagda1
Copy link
Contributor

dagda1 commented Oct 7, 2021

@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

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