Skip to content

Commit

Permalink
fix: ignore runtime unsupported or malformed issuer jwks
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Aug 24, 2019
1 parent 1df74d0 commit f08b8be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/issuer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Issuer {
});
const jwks = processResponse(response);

const joseKeyStore = jose.JWKS.asKeyStore(jwks);
const joseKeyStore = jose.JWKS.asKeyStore(jwks, { ignoreErrors: true });
cache.set('throttle', true, 60 * 1000);
instance(this).set('keystore', joseKeyStore);
return joseKeyStore;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"test": "mocha"
},
"dependencies": {
"@panva/jose": "^1.8.0",
"@panva/jose": "^1.9.0",
"base64url": "^3.0.1",
"got": "^9.6.0",
"lodash": "^4.17.13",
Expand All @@ -51,12 +51,12 @@
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"chai": "^4.2.0",
"eslint": "^6.2.1",
"eslint": "^6.2.2",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"husky": "^3.0.4",
"mocha": "^6.2.0",
"nock": "^11.3.1",
"nock": "^11.3.2",
"nyc": "^14.1.1",
"readable-mock-req": "^0.2.2",
"sinon": "^7.3.2",
Expand Down

0 comments on commit f08b8be

Please sign in to comment.