{"action":"opened","issue":{"url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/31","labels_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/31/comments","events_url":"https://api.github.com/repos/krakenjs/swaggerize-hapi/issues/31/events","html_url":"https://github.com/krakenjs/swaggerize-hapi/issues/31","id":64110852,"number":31,"title":"Authentication interface missing","user":{"login":"peteyy","id":7130689,"avatar_url":"https://avatars.githubusercontent.com/u/7130689?v=3","gravatar_id":"","url":"https://api.github.com/users/peteyy","html_url":"https://github.com/peteyy","followers_url":"https://api.github.com/users/peteyy/followers","following_url":"https://api.github.com/users/peteyy/following{/other_user}","gists_url":"https://api.github.com/users/peteyy/gists{/gist_id}","starred_url":"https://api.github.com/users/peteyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peteyy/subscriptions","organizations_url":"https://api.github.com/users/peteyy/orgs","repos_url":"https://api.github.com/users/peteyy/repos","events_url":"https://api.github.com/users/peteyy/events{/privacy}","received_events_url":"https://api.github.com/users/peteyy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T22:02:20Z","updated_at":"2015-03-24T22:02:20Z","closed_at":null,"body":"I was trying to implement Hapi jwt authentication into my existing swagger project and I haven't found any official way in the docs.\r\n\r\nIn each route generated, I had to add these few lines to every route\r\n\r\n        auth: 'token',\r\n        plugins: {\r\n          hapiAuthorization: {\r\n            roles: route.authorization\r\n          }\r\n        }\r\n\r\n\r\nIt would be so much better to provide an interface to customize the route generation! :+1:\r\nI'm quite new to these things, if there is any way I can help, tell me. :)"}}