{"action":"created","issue":{"url":"https://api.github.com/repos/ocadotechnology/aimmo/issues/136","repository_url":"https://api.github.com/repos/ocadotechnology/aimmo","labels_url":"https://api.github.com/repos/ocadotechnology/aimmo/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/ocadotechnology/aimmo/issues/136/comments","events_url":"https://api.github.com/repos/ocadotechnology/aimmo/issues/136/events","html_url":"https://github.com/ocadotechnology/aimmo/pull/136","id":170431190,"number":136,"title":"[WIP] Auth tokens","user":{"login":"joshuablake","id":686559,"avatar_url":"https://avatars.githubusercontent.com/u/686559?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuablake","html_url":"https://github.com/joshuablake","followers_url":"https://api.github.com/users/joshuablake/followers","following_url":"https://api.github.com/users/joshuablake/following{/other_user}","gists_url":"https://api.github.com/users/joshuablake/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuablake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuablake/subscriptions","organizations_url":"https://api.github.com/users/joshuablake/orgs","repos_url":"https://api.github.com/users/joshuablake/repos","events_url":"https://api.github.com/users/joshuablake/events{/privacy}","received_events_url":"https://api.github.com/users/joshuablake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-10T14:28:35Z","updated_at":"2016-08-11T12:53:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ocadotechnology/aimmo/pulls/136","html_url":"https://github.com/ocadotechnology/aimmo/pull/136","diff_url":"https://github.com/ocadotechnology/aimmo/pull/136.diff","patch_url":"https://github.com/ocadotechnology/aimmo/pull/136.patch"},"body":"Requires #124 as that adds the models in the backend.\r\n\r\nWhenever a component receives a request, the receiver should check authentication from the caller. Workers should _never_ know any other components auth token due to running user code.\r\n\r\nPlaces where needs/has been implemented:\r\n\r\n- [ ] players/creator interface (needs a new auth token generated before the creator app is started).\r\n- [x] players/game interface (game auth token).\r\n- [x] game/worker interface (avatar auth token)."},"comment":{"url":"https://api.github.com/repos/ocadotechnology/aimmo/issues/comments/239152127","html_url":"https://github.com/ocadotechnology/aimmo/pull/136#issuecomment-239152127","issue_url":"https://api.github.com/repos/ocadotechnology/aimmo/issues/136","id":239152127,"user":{"login":"joshuablake","id":686559,"avatar_url":"https://avatars.githubusercontent.com/u/686559?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuablake","html_url":"https://github.com/joshuablake","followers_url":"https://api.github.com/users/joshuablake/followers","following_url":"https://api.github.com/users/joshuablake/following{/other_user}","gists_url":"https://api.github.com/users/joshuablake/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuablake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuablake/subscriptions","organizations_url":"https://api.github.com/users/joshuablake/orgs","repos_url":"https://api.github.com/users/joshuablake/repos","events_url":"https://api.github.com/users/joshuablake/events{/privacy}","received_events_url":"https://api.github.com/users/joshuablake/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T12:53:42Z","updated_at":"2016-08-11T12:53:42Z","body":"@CelineBoudier I think an env var CREATOR_AUTH_TOKEN with the output of `urlsafe_b64encode(urandom(16))` (or some other urlsafe string, that's just what we're currently using elsewhere) should work."}}
{"actor":{"display_login":"joshuablake"}}