Skip to content

Fixing RS256/M2M token verification issue. #29

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

Merged
merged 5 commits into from
Jun 13, 2019
Merged

Fixing RS256/M2M token verification issue. #29

merged 5 commits into from
Jun 13, 2019

Conversation

sachin-maheshwari
Copy link
Contributor

There was following error logged in Cloudwatch (at 2019-06-12 07:00:00(UTC +00:00))-
Error: Invalid Token.Error: getaddrinfo EMFILE topcoder.auth0.com:443
at jwksClients.(anonymous function).getSigningKey (/opt/app/node_modules/tc-core-library-js/lib/auth/verifier.js:44:28)

So current fix will prevent multiple calls to Auth0 server for public signing key by caching locally.

@sachin-maheshwari sachin-maheshwari merged commit a50d0fb into master Jun 13, 2019
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

Successfully merging this pull request may close these issues.

1 participant