{"action":"created","issue":{"url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/254","repository_url":"https://api.github.com/repos/glennjones/hapi-swagger","labels_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/254/comments","events_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/254/events","html_url":"https://github.com/glennjones/hapi-swagger/issues/254","id":144052797,"number":254,"title":"JWT Issue","user":{"login":"casalot","id":7264355,"avatar_url":"https://avatars.githubusercontent.com/u/7264355?v=3","gravatar_id":"","url":"https://api.github.com/users/casalot","html_url":"https://github.com/casalot","followers_url":"https://api.github.com/users/casalot/followers","following_url":"https://api.github.com/users/casalot/following{/other_user}","gists_url":"https://api.github.com/users/casalot/gists{/gist_id}","starred_url":"https://api.github.com/users/casalot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casalot/subscriptions","organizations_url":"https://api.github.com/users/casalot/orgs","repos_url":"https://api.github.com/users/casalot/repos","events_url":"https://api.github.com/users/casalot/events{/privacy}","received_events_url":"https://api.github.com/users/casalot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-28T18:57:58Z","updated_at":"2016-04-07T15:15:20Z","closed_at":"2016-04-07T15:15:20Z","body":"I'm using JSON Web Token to auth my API. When trying to set `auth: 'jwt'` in the plugin options for hapi-swagger, I get the following error: **Unknown authentication strategy jwt in /swagger.json**"},"comment":{"url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/comments/206948530","html_url":"https://github.com/glennjones/hapi-swagger/issues/254#issuecomment-206948530","issue_url":"https://api.github.com/repos/glennjones/hapi-swagger/issues/254","id":206948530,"user":{"login":"glennjones","id":175288,"avatar_url":"https://avatars.githubusercontent.com/u/175288?v=3","gravatar_id":"","url":"https://api.github.com/users/glennjones","html_url":"https://github.com/glennjones","followers_url":"https://api.github.com/users/glennjones/followers","following_url":"https://api.github.com/users/glennjones/following{/other_user}","gists_url":"https://api.github.com/users/glennjones/gists{/gist_id}","starred_url":"https://api.github.com/users/glennjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennjones/subscriptions","organizations_url":"https://api.github.com/users/glennjones/orgs","repos_url":"https://api.github.com/users/glennjones/repos","events_url":"https://api.github.com/users/glennjones/events{/privacy}","received_events_url":"https://api.github.com/users/glennjones/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T15:15:20Z","updated_at":"2016-04-07T15:15:20Z","body":"Hi I have built a full demo with JWT and a customised version of the swagger-ui that works with tokens. The changes to the html are small but I think you will like the layout.\r\n\r\nDemo: https://hapi-token-docs.herokuapp.com/\r\nCode: https://github.com/glennjones/hapi-token-docs/\r\n\r\nI needed a reference piece for when people ask about token etc, but thought it would help you as well\r\n\r\nEnjoy\r\n"}}