Comments (4)
Thanks to your input I can confirm it is a dependency problem, in my case:
mailgun-js -> socks-proxy-agent -> agent-base (this last package is who is causing the problem)
from jose.
I am absolutely certain this is the same issue as in panva/node-openid-client#320, this traces back to sindresorhus/got#1515 which traces back to a number of libraries that are possibly in your dependency tree that are monkey patching node's http/https clients. So in summary, not an issue with this library. The way node's API is used is in line with its documentation.
Libraries identified to this so far (note they may be intrinsic dependencies of yours)
- https://github.com/DataDog/dd-trace-js
- https://github.com/mailjet/mailjet-apiv3-nodejs
- https://github.com/TooTallNate/node-agent-base
I will recommend you to remove all other dependencies and keep on adding them one by one until the culprit shows itself. You wouldn't want a library messing with node's stdlib in your stack now, would you?
from jose.
> const jwks = createRemoteJWKSet(new URL('https://appleid.apple.com/auth/keys'));
> jwks({ kid: 'eXaunmL', alg: 'RS256' }).then(console.log)
Promise { <pending> }
> PublicKeyObject { [Symbol(kKeyType)]: 'public' }
works as intended when not affected by the described above issue that's caused by one of your dependencies.
from jose.
Nevertheless, if all it takes to bypass that issue is to pass url.href
, i'll push a change.
from jose.
Related Issues (20)
- Check for `jwk.oth` should also check for `null` value HOT 2
- CryptoKey is not extractable HOT 1
- JWKS Timeout : request timed out HOT 1
- Cannot read properties of undefined (reading 'base64url') HOT 7
- Claims validation should not mutate incoming `requiredClaims` array HOT 6
- jose importSPKI error TypeError: "spki" must be SPKI formatted string HOT 2
- Bun: Export named 'diffieHellman' not found in module 'crypto'. HOT 1
- Maybe slightly tweak the exports? HOT 4
- createLocalJWKSet should not generate a TS error when called with immutable input HOT 2
- Signature verification works in Node.js but fails in Cloudflare Workers HOT 1
- Cloudflare: The requested module 'node:crypto' does not provide an export named 'constants' HOT 5
- Support for AWS Lambda LLRT Runtime HOT 1
- `msw` is unable to intercept JWKS request in node environment due to namespace (`* as`) import HOT 1
- [Usage with Vitest/JSDOM] payload must be an instance of Uint8Array HOT 2
- Reference error: Key is not defined HOT 1
- JWT decryption does not support IVs longer than encryption key length for GCM HOT 9
- Minor error in example #112 HOT 1
- Signature validation fails when using mutliple JWKS endpoints HOT 8
- 5.6.0 normalizePrivateKey HOT 3
- HMAC key data must not be empty HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jose.