Comments (9)
It seems #38 fix it. Just need to merge it now. This is the only thing holding me back to publish my v17 upgrade.
from node-jwks-rsa.
I would need this too. Does not seem to be working currently with latest style of hapi-auth-jwt2
from node-jwks-rsa.
+1
from node-jwks-rsa.
I think #38 is bugged. I submitted a review with what I think is going wrong.
from node-jwks-rsa.
Now that #38 is merged we have to wait to #44
from node-jwks-rsa.
This was helpful for the complete:true and the different key validation function needed for v17.
https://github.com/auth0/node-jwks-rsa/tree/master/examples/hapi-demo
from node-jwks-rsa.
It works fine but I faced some issues due to lack of documentation, I described the example usage in SO answer: https://stackoverflow.com/a/51995573/2029818.
Maybe its worth to add a example usage for hapi v17? I can do it, but please point me in which file I should add it.
from node-jwks-rsa.
Hi, when trying the example for Hapi v.17.x.x I get this error:
in ..../node_modules/jwks-rsa/lib/integrations/hapi.js:63
return cb(null, key.publicKey || key.rsaPublicKey, key);
And the function there is:
return function secretProvider(decoded, cb) {
// We cannot find a signing certificate if there is no header (no kid).
if (!decoded || !decoded.header) {
return cb(null, null, null);
}
// Only RS256 is supported.
if (decoded.header.alg !== 'RS256') {
return cb(null, null, null);
}
client.getSigningKey(decoded.header.kid, function (err, key) {
if (err) {
return onError(err, function (newError) {
return cb(newError, null, null);
});
}
// Provide the key.
return cb(null, key.publicKey || key.rsaPublicKey, key);
});
};
under the comment Provide the key, cb is not in scope, try'ed to move it and that resulted in some other errors, donΒ΄t now the code to be able to figure it out.
from node-jwks-rsa.
This work was complete, I think if the docs need work we should track that on another issue/PR.
from node-jwks-rsa.
Related Issues (20)
- Types for JwksClient.getSigningKey still allows callbacks HOT 2
- cache doesn't work for the expressJwtSecret function HOT 3
- Types conflict between [email protected] and [email protected] HOT 2
- FIX BUG TYPES WITH TYPESCRIPT AND AUTH 0 HOT 1
- The JWKS endpoint did not contain any signing keys HOT 2
- cb is not a function HOT 2
- Add pre-fetch keys / tweaks to caching HOT 2
- strictSsl property not available jwksRsa.hapiJwt2KeyAsync HOT 2
- Please upgrade dependencies HOT 5
- I can't login to my wallet I tried everything else but it is hopeless π I hope you can understand that I created Bitcoin with satoshi nakamoto in 2008
- error in secret or public key callback: The JWKS endpoint did not contain any signing keys HOT 3
- Consider outputting ESM HOT 2
- types referred in dependencies section of package json HOT 2
- Make jwks-rsa resilient in the face of inability to access the underlying JWKS HOT 1
- Provide a way to prevent `getKeysInterceptor` falling back to `jwksUri` when the result doesn't contain the `kid` HOT 2
- No support for Cloudflare Workers HOT 3
- Can't match types definition in @types/[email protected] HOT 2
- error TS2688: Cannot find type definition file for 'express-unless'.
- Bump jose to v5 HOT 3
- Add module-info.java
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 node-jwks-rsa.