question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use Cypress with in memory token storage after changes in version 1.12.0

See original GitHub issue

Describe the problem

In Cypress tests you cannot redirect back and forward to the authorisation server for interactive login. What you do instead is acquire a token with by using password flow and use this token in the application you are testing.

This was all working fine, until version 1.12.0 added some additional state validation. It checks if the nonce matches with the nonce claim in the id token. But since I acquire the token with the password flow, there is no nonce claim in the token.

It looks like it’s not possible to use the combination of Cypress and Auth0 (storing the token in memory) at the moment. See also the discussion here

What was the expected behavior?

Using the great products Cypress and Auth0 together.

Environment

  • Version of auth0-spa-js used: 1.12.0 and higher
  • Which framework are you using, if applicable (Angular, React, etc): Cypress

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stevehobbsdevcommented, Dec 17, 2020

@HWouters After some discussion with the team, we’ve decided to remove this check. A PR has been raised and is attached to this issue.

0reactions
stevehobbsdevcommented, Dec 17, 2020

@weyert I see you’ve raised another issue (#676), let’s chat about it on there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
This will clear out all installed versions of Cypress that may be cached on your machine. cypress cache clear. After running this command,...
Read more >
Changelog - Nextcloud
Update timely and don't run unmaintained Nextcloud versions. Privacy does not exist without security. Our security policy is to publicize CVE's about 3...
Read more >
Zephyr 2.7.0
We are pleased to announce the release of Zephyr RTOS version ... The following sections provide detailed lists of changes by component.
Read more >
Docker Compose release notes
Compose v2.9.0 contains changes to the environment variable's precedence that have since been reverted. We recommend using v2.10+ to avoid compatibility ...
Read more >
Releases · DLCM / Community / DLCM-Backend - GitLab
... Unable to see the full name of an org unit when selecting them; [DLCM-1904] - Solidify-Auth: creation and update dates not stored...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found