{"action":"created","issue":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/51","labels_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/51/comments","events_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/51/events","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/51","id":91235123,"number":51,"title":"Specifying allowed algorithms","user":{"login":"walling","id":31546,"avatar_url":"https://avatars.githubusercontent.com/u/31546?v=3","gravatar_id":"","url":"https://api.github.com/users/walling","html_url":"https://github.com/walling","followers_url":"https://api.github.com/users/walling/followers","following_url":"https://api.github.com/users/walling/following{/other_user}","gists_url":"https://api.github.com/users/walling/gists{/gist_id}","starred_url":"https://api.github.com/users/walling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walling/subscriptions","organizations_url":"https://api.github.com/users/walling/orgs","repos_url":"https://api.github.com/users/walling/repos","events_url":"https://api.github.com/users/walling/events{/privacy}","received_events_url":"https://api.github.com/users/walling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-26T12:12:49Z","updated_at":"2015-06-26T14:37:28Z","closed_at":null,"body":"Regarding [this vulnerability in JWT](https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/), how can I specify the allowed algorithms in `hapi-auth-jwt2`? It could be nice with something like this:\r\n\r\n```js\r\nserver.auth.strategy('jwt', 'jwt', true, {\r\n  key: 'secret',\r\n  algorithms: [ 'HS256' ],\r\n  validateFunc: validate\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/comments/115710626","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/51#issuecomment-115710626","issue_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/51","id":115710626,"user":{"login":"walling","id":31546,"avatar_url":"https://avatars.githubusercontent.com/u/31546?v=3","gravatar_id":"","url":"https://api.github.com/users/walling","html_url":"https://github.com/walling","followers_url":"https://api.github.com/users/walling/followers","following_url":"https://api.github.com/users/walling/following{/other_user}","gists_url":"https://api.github.com/users/walling/gists{/gist_id}","starred_url":"https://api.github.com/users/walling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walling/subscriptions","organizations_url":"https://api.github.com/users/walling/orgs","repos_url":"https://api.github.com/users/walling/repos","events_url":"https://api.github.com/users/walling/events{/privacy}","received_events_url":"https://api.github.com/users/walling/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T14:37:28Z","updated_at":"2015-06-26T14:37:28Z","body":"I've added a PR. If you have any comments, please do not hesitate to tell me."}}