{"action":"opened","issue":{"url":"https://api.github.com/repos/auth0/node-jwks-rsa/issues/11","repository_url":"https://api.github.com/repos/auth0/node-jwks-rsa","labels_url":"https://api.github.com/repos/auth0/node-jwks-rsa/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/auth0/node-jwks-rsa/issues/11/comments","events_url":"https://api.github.com/repos/auth0/node-jwks-rsa/issues/11/events","html_url":"https://github.com/auth0/node-jwks-rsa/issues/11","id":234271633,"number":11,"title":"The JWKS endpoint did not contain any signing keys","user":{"login":"zbornstein","id":7107450,"avatar_url":"https://avatars0.githubusercontent.com/u/7107450?v=3","gravatar_id":"","url":"https://api.github.com/users/zbornstein","html_url":"https://github.com/zbornstein","followers_url":"https://api.github.com/users/zbornstein/followers","following_url":"https://api.github.com/users/zbornstein/following{/other_user}","gists_url":"https://api.github.com/users/zbornstein/gists{/gist_id}","starred_url":"https://api.github.com/users/zbornstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbornstein/subscriptions","organizations_url":"https://api.github.com/users/zbornstein/orgs","repos_url":"https://api.github.com/users/zbornstein/repos","events_url":"https://api.github.com/users/zbornstein/events{/privacy}","received_events_url":"https://api.github.com/users/zbornstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-07T16:39:47Z","updated_at":"2017-06-07T16:39:47Z","closed_at":null,"body":"Looking closer within **JwksClient.js**, it seems to not filter out the keys properly. By default, the **kty** value in this was **RSA**, but our Ping implementation used **EC** keys.  I swapped that, but the following code produces an undefined list of \"keys\"...\r\n\r\n`var signingKeys = keys.filter(function (key) {\r\n          return key.use === 'sig' && key.kty === 'EC' && key.kid && (key.x5c && key.x5c.length || key.n && key.e);\r\n        }).map(function (key) {\r\n          if (key.x5c && key.x5c.length) {\r\n            return { kid: key.kid, nbf: key.nbf, publicKey: (0, _utils.certToPEM)(key.x5c[0]) };\r\n          } else {\r\n            return { kid: key.kid, nbf: key.nbf, rsaPublicKey: (0, _utils.rsaPublicKeyToPEM)(key.n, key.e) };\r\n          }\r\n        });`\r\n\r\n\r\n"}}
{"actor":{"display_login":"zbornstein"}}