-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
Unsuccessful Callback to Unknow client side error #622
Unsuccessful Callback to Unknow client side error #622
Comments
Hi @BRAVO68WEB Are you running your code in Node.js, or some other runtime like Bun or Deno? |
Bun Let me check with node too. |
Yep, I just now tried with node, it worked. But, still can tell me why is that check present there? |
Well, this is a Node.js-only module. https://github.com/panva/node-openid-client/blob/main/README.md#how-do-i-use-it-outside-of-nodejs
I can explain what's happening. So what happens is that Bun resolves jose's bun entrypoint which uses native WebCryptoAPI and ends up with a For now I can only say that this module is meant to be used only in Node.js and this is not a bug. That being said, I can look into testing the library in Bun and/or Deno as well but it's not a priority for me. |
Thank you @panva for clearing my doubt pretty fast 😸. |
@Jarred-Sumner is there anything that can be done to have bun force to resolve a given dependency using a different algorithm (see my comment above)? |
This attempts to work around: - missing Node.js APIs in Bun - Bun's bugs in url.parse(..., true) - Bun loading `jose`'s bun target instead of the require one It is not possible to run openid-client's test suite due to other Bun Node.js compatibility bugs which is why this is "experimental" Refs #622 Refs #623
This attempts to work around: - missing Node.js APIs in Bun - Bun's bugs in url.parse(..., true) - Bun loading `jose`'s bun target instead of the require one It is not possible to run openid-client's test suite due to other Bun Node.js compatibility bugs which is why this is "experimental" Refs #622 Refs #623
This attempts to work around: - missing Node.js APIs in Bun - Bun's bugs in url.parse(..., true) - Bun loading `jose`'s bun target instead of the require one It is not possible to run openid-client's test suite due to other Bun Node.js compatibility bugs which is why this is "experimental" Refs #622 Refs #623
I've released https://github.com/panva/node-openid-client/releases/tag/v5.6.0 This attempts to work around:
It is not possible to run openid-client's test suite due to other Bun Node.js compatibility bugs which is why this is "experimental" and this for now remains a Node.js only module. Please let me know if you encounter any new issues when running openid-client in Bun. |
@panva I will try, and check back to you |
Hey @panva it works like a charm. [0.04ms] ".env"
[1] 30000 segmentation fault bun run -b --port 4000 --hot index.ts I get this error when try to verify JWT with Waiting for your PR auth0/node-jwks-rsa#374 to get merged, then it will work fine. |
unlikely to be jose related, just jose triggered, please open an issue with bun. https://github.com/oven-sh/bun/issues |
Describe the bug
/lib/helpers/keystore.js#L239
235 | }
236 | continue;
237 | }
238 |
239 | if (!isKeyObject(keyObject)) {
240 | throw new Error('what?!');
^
error: what?!
at /node_modules/openid-client/lib/helpers/keystore.js:240:14
at processTicksAndRejections (:55:76)
To Reproduce
Client configuration:
Steps to reproduce the behaviour:
Expected behaviour
It works well, I should be able to get access_token after a successfull callback
Environment:
Additional context
Add any other context about the problem here.
Solution
The text was updated successfully, but these errors were encountered: