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

Fix unit tests by stubbing RSA verification #1085

Merged
merged 1 commit into from
Mar 12, 2020
Merged

Conversation

stevehobbsdev
Copy link
Contributor

@stevehobbsdev stevehobbsdev commented Mar 11, 2020

Changes

Currently, the unit tests use idtoken-verifier to verify ID tokens, including downloading the JWKS document to verify the RS256 signature.

This PR stubs that call out to always return true for RSA verification (the tests assumed true anyway), but it does make the tests more robust and unaffected by signing key changes on the server.

References

Instigated by this failing test suite.

Testing

No test coverage added, just changes to setup/teardown for the parseHash tests.

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

@stevehobbsdev stevehobbsdev merged commit b9ecfed into master Mar 12, 2020
@stevehobbsdev stevehobbsdev deleted the fix/tests branch March 12, 2020 09:17
stevehobbsdev pushed a commit that referenced this pull request Apr 9, 2020
* Applied #1085 from auth0.js (fixes broken tests)

* Added an object helper for setting properties at a deep level

* Masking password in original error object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants