{"action":"created","issue":{"url":"https://api.github.com/repos/lukeautry/tsoa/issues/20","repository_url":"https://api.github.com/repos/lukeautry/tsoa","labels_url":"https://api.github.com/repos/lukeautry/tsoa/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/lukeautry/tsoa/issues/20/comments","events_url":"https://api.github.com/repos/lukeautry/tsoa/issues/20/events","html_url":"https://github.com/lukeautry/tsoa/issues/20","id":183279993,"number":20,"title":"Security definitions","user":{"login":"andrii-z4i","id":11600279,"avatar_url":"https://avatars.githubusercontent.com/u/11600279?v=3","gravatar_id":"","url":"https://api.github.com/users/andrii-z4i","html_url":"https://github.com/andrii-z4i","followers_url":"https://api.github.com/users/andrii-z4i/followers","following_url":"https://api.github.com/users/andrii-z4i/following{/other_user}","gists_url":"https://api.github.com/users/andrii-z4i/gists{/gist_id}","starred_url":"https://api.github.com/users/andrii-z4i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrii-z4i/subscriptions","organizations_url":"https://api.github.com/users/andrii-z4i/orgs","repos_url":"https://api.github.com/users/andrii-z4i/repos","events_url":"https://api.github.com/users/andrii-z4i/events{/privacy}","received_events_url":"https://api.github.com/users/andrii-z4i/received_events","type":"User","site_admin":false},"labels":[{"id":394275770,"url":"https://api.github.com/repos/lukeautry/tsoa/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":394275771,"url":"https://api.github.com/repos/lukeautry/tsoa/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-16T17:47:56Z","updated_at":"2016-12-22T22:08:53Z","closed_at":null,"body":"Currently tsoa doesn't provide mechanism to set security decorators for methods in controller. It would be useful to extend library with such decorators. \nMy expectation is that developer could set up decorator in next way\n`\n@Route(\"users\")\nexport class Index {\n    constructor() {\n    }`\n\n```\n`@Get()\n@Oauth2Security({enabled: true, scope: ['read', 'write']})\npublic async Get(userId: string): Promise<UserData> {\n    return findUser;\n}\n```\n\n`\n"},"comment":{"url":"https://api.github.com/repos/lukeautry/tsoa/issues/comments/268901608","html_url":"https://github.com/lukeautry/tsoa/issues/20#issuecomment-268901608","issue_url":"https://api.github.com/repos/lukeautry/tsoa/issues/20","id":268901608,"user":{"login":"andrii-z4i","id":11600279,"avatar_url":"https://avatars.githubusercontent.com/u/11600279?v=3","gravatar_id":"","url":"https://api.github.com/users/andrii-z4i","html_url":"https://github.com/andrii-z4i","followers_url":"https://api.github.com/users/andrii-z4i/followers","following_url":"https://api.github.com/users/andrii-z4i/following{/other_user}","gists_url":"https://api.github.com/users/andrii-z4i/gists{/gist_id}","starred_url":"https://api.github.com/users/andrii-z4i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrii-z4i/subscriptions","organizations_url":"https://api.github.com/users/andrii-z4i/orgs","repos_url":"https://api.github.com/users/andrii-z4i/repos","events_url":"https://api.github.com/users/andrii-z4i/events{/privacy}","received_events_url":"https://api.github.com/users/andrii-z4i/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T22:08:53Z","updated_at":"2016-12-22T22:08:53Z","body":"@lukeautry Could you please point me out to the commit which you referring to, talking about configuration method? I've checked latest commits and something more or less related to that is `a`) my changes regarding `JWT` token support and `b`) your changes around splitting configuration files and having there some kind of  [oauth support](https://github.com/lukeautry/tsoa/commit/c2faf25f54d779fdb1cc7f423993231c37bbc920). If it is `b` then, to be honest, I didn't try it yet. \r\nI noticed that swagger.json generated by version 1.0.0 has validation errors and they are related to `tsoa_auth` and `api_key` fields. [Validation error example](https://online.swagger.io/validator/debug?url=https://z4inode.tk/swagger.json)."}}
{"actor":{"display_login":"andrii-z4i"}}