{"action":"opened","issue":{"url":"https://api.github.com/repos/aio-libs/aiohttp_security/issues/2","repository_url":"https://api.github.com/repos/aio-libs/aiohttp_security","labels_url":"https://api.github.com/repos/aio-libs/aiohttp_security/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/aio-libs/aiohttp_security/issues/2/comments","events_url":"https://api.github.com/repos/aio-libs/aiohttp_security/issues/2/events","html_url":"https://github.com/aio-libs/aiohttp_security/issues/2","id":154456247,"number":2,"title":"Authorize decorator","user":{"login":"shicky","id":18521022,"avatar_url":"https://avatars.githubusercontent.com/u/18521022?v=3","gravatar_id":"","url":"https://api.github.com/users/shicky","html_url":"https://github.com/shicky","followers_url":"https://api.github.com/users/shicky/followers","following_url":"https://api.github.com/users/shicky/following{/other_user}","gists_url":"https://api.github.com/users/shicky/gists{/gist_id}","starred_url":"https://api.github.com/users/shicky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shicky/subscriptions","organizations_url":"https://api.github.com/users/shicky/orgs","repos_url":"https://api.github.com/users/shicky/repos","events_url":"https://api.github.com/users/shicky/events{/privacy}","received_events_url":"https://api.github.com/users/shicky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-12T11:06:16Z","updated_at":"2016-05-12T11:06:16Z","closed_at":null,"body":"I am currently using aiohttp_security for our new server.\r\nI think it would be nice to include decorator in aiohttp_security api.\r\nThis is method signature I currently have.\r\n\r\n```python\r\n@aiohttp_security.authorize(required=True, redirect_url=None, permission=None)\r\ndef handler(request):\r\n    return web.Response(body=b'OK')\r\n```\r\n\r\nCan I create pull request?"}}