From f08b8be029a59596129f33ca96dd09ecab7971a2 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sat, 24 Aug 2019 22:07:25 +0200 Subject: [PATCH] fix: ignore runtime unsupported or malformed issuer jwks --- lib/issuer.js | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/issuer.js b/lib/issuer.js index 48972724..4a7e5824 100644 --- a/lib/issuer.js +++ b/lib/issuer.js @@ -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; diff --git a/package.json b/package.json index aeb02cd4..6849b4ec 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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",