{"action":"created","issue":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/120","labels_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/120/comments","events_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/120/events","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/120","id":114659160,"number":120,"title":"Support custom verification function or disable verification","user":{"login":"stongo","id":1449748,"avatar_url":"https://avatars.githubusercontent.com/u/1449748?v=3","gravatar_id":"","url":"https://api.github.com/users/stongo","html_url":"https://github.com/stongo","followers_url":"https://api.github.com/users/stongo/followers","following_url":"https://api.github.com/users/stongo/following{/other_user}","gists_url":"https://api.github.com/users/stongo/gists{/gist_id}","starred_url":"https://api.github.com/users/stongo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stongo/subscriptions","organizations_url":"https://api.github.com/users/stongo/orgs","repos_url":"https://api.github.com/users/stongo/repos","events_url":"https://api.github.com/users/stongo/events{/privacy}","received_events_url":"https://api.github.com/users/stongo/received_events","type":"User","site_admin":false},"labels":[{"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":10,"created_at":"2015-11-02T18:45:52Z","updated_at":"2015-12-21T18:02:51Z","closed_at":null,"body":"I'm in the process of implementing [Dex](https://github.com/coreos/dex)\r\nThe reason for this request is because Dex uses and rotates through multiple keys to sign JWT tokens. Added to the complexity is the fact one has to generate the keys to verify tokens from an array of modulus/exponent pairs.\r\nThis leaves this module's current paradigm of providing one key to pass to jwt.verify() a blocker.\r\nI wondered about the following solutions\r\n1. Allow custom token verification function\r\n1. Option to disable token verification and allow verification to happen in the validate function (with a major warning that decoded will not be verified)\r\nI would be more than glad to provide a PR if you would agree on a way to tackle this in this module"},"comment":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/comments/166376264","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/120#issuecomment-166376264","issue_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/120","id":166376264,"user":{"login":"nelsonic","id":194400,"avatar_url":"https://avatars.githubusercontent.com/u/194400?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsonic","html_url":"https://github.com/nelsonic","followers_url":"https://api.github.com/users/nelsonic/followers","following_url":"https://api.github.com/users/nelsonic/following{/other_user}","gists_url":"https://api.github.com/users/nelsonic/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonic/subscriptions","organizations_url":"https://api.github.com/users/nelsonic/orgs","repos_url":"https://api.github.com/users/nelsonic/repos","events_url":"https://api.github.com/users/nelsonic/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonic/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T18:02:51Z","updated_at":"2015-12-21T18:02:51Z","body":"@stongo please see Pull Request: #132 (*your comments/input is welcomed*)"}}