{"action":"created","issue":{"url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware/issues/21","repository_url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware","labels_url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware/issues/21/comments","events_url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware/issues/21/events","html_url":"https://github.com/alan-turing-institute/gateway-middleware/pull/21","id":332516426,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0OTgxMDg1","number":21,"title":"Endpoint authentication","user":{"login":"masonlr","id":5828176,"node_id":"MDQ6VXNlcjU4MjgxNzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5828176?v=4","gravatar_id":"","url":"https://api.github.com/users/masonlr","html_url":"https://github.com/masonlr","followers_url":"https://api.github.com/users/masonlr/followers","following_url":"https://api.github.com/users/masonlr/following{/other_user}","gists_url":"https://api.github.com/users/masonlr/gists{/gist_id}","starred_url":"https://api.github.com/users/masonlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masonlr/subscriptions","organizations_url":"https://api.github.com/users/masonlr/orgs","repos_url":"https://api.github.com/users/masonlr/repos","events_url":"https://api.github.com/users/masonlr/events{/privacy}","received_events_url":"https://api.github.com/users/masonlr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T18:34:01Z","updated_at":"2018-06-14T18:40:22Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware/pulls/21","html_url":"https://github.com/alan-turing-institute/gateway-middleware/pull/21","diff_url":"https://github.com/alan-turing-institute/gateway-middleware/pull/21.diff","patch_url":"https://github.com/alan-turing-institute/gateway-middleware/pull/21.patch"},"body":"### Authentication\r\n\r\nAdds `@token_required` decorator for authenticating endpoints.\r\n\r\nAuthentication is achieved by checking the validity of the JWT token passed with each http request arriving from the frontend.\r\n\r\nConfigurable parameters are:\r\n\r\n```\r\n    \"AUTHENTICATION_URL\": \"http://auth:6000/auth/status\",\r\n    \"AUTHENTICATE_ROUTES\": true\r\n```\r\n\r\nWe set `AUTHENTICATE_ROUTES` to `false` when undertaking unit tests.\r\n\r\n\r\n### Configuration\r\n\r\nMiddleware configuration is now via json files:\r\n\r\n* `config.development.json`\r\n* `tests/config.testing.json`\r\n\r\n(Future addition will be `config.production.json`. Also suggest moving `tests/config.testing.json` to top-level `config.testing.json`.)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware/issues/comments/397397693","html_url":"https://github.com/alan-turing-institute/gateway-middleware/pull/21#issuecomment-397397693","issue_url":"https://api.github.com/repos/alan-turing-institute/gateway-middleware/issues/21","id":397397693,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzM5NzY5Mw==","user":{"login":"masonlr","id":5828176,"node_id":"MDQ6VXNlcjU4MjgxNzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5828176?v=4","gravatar_id":"","url":"https://api.github.com/users/masonlr","html_url":"https://github.com/masonlr","followers_url":"https://api.github.com/users/masonlr/followers","following_url":"https://api.github.com/users/masonlr/following{/other_user}","gists_url":"https://api.github.com/users/masonlr/gists{/gist_id}","starred_url":"https://api.github.com/users/masonlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masonlr/subscriptions","organizations_url":"https://api.github.com/users/masonlr/orgs","repos_url":"https://api.github.com/users/masonlr/repos","events_url":"https://api.github.com/users/masonlr/events{/privacy}","received_events_url":"https://api.github.com/users/masonlr/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T18:40:22Z","updated_at":"2018-06-14T18:40:22Z","author_association":"MEMBER","body":"`flake8` errors on travis are more comprehensive than my local setup. Will fix this asap."}}
{"actor":{"display_login":"masonlr"}}