{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/90","repository_url":"https://api.github.com/repos/apollographql/graphql-subscriptions","labels_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/90/comments","events_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/90/events","html_url":"https://github.com/apollographql/graphql-subscriptions/issues/90","id":244290779,"node_id":"MDU6SXNzdWUyNDQyOTA3Nzk=","number":90,"title":"Authorizing subscriptions","user":{"login":"altschuler","id":956928,"node_id":"MDQ6VXNlcjk1NjkyOA==","avatar_url":"https://avatars0.githubusercontent.com/u/956928?v=4","gravatar_id":"","url":"https://api.github.com/users/altschuler","html_url":"https://github.com/altschuler","followers_url":"https://api.github.com/users/altschuler/followers","following_url":"https://api.github.com/users/altschuler/following{/other_user}","gists_url":"https://api.github.com/users/altschuler/gists{/gist_id}","starred_url":"https://api.github.com/users/altschuler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altschuler/subscriptions","organizations_url":"https://api.github.com/users/altschuler/orgs","repos_url":"https://api.github.com/users/altschuler/repos","events_url":"https://api.github.com/users/altschuler/events{/privacy}","received_events_url":"https://api.github.com/users/altschuler/received_events","type":"User","site_admin":false},"labels":[{"id":427693329,"node_id":"MDU6TGFiZWw0Mjc2OTMzMjk=","url":"https://api.github.com/repos/apollographql/graphql-subscriptions/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-07-20T08:58:45Z","updated_at":"2018-10-02T17:18:24Z","closed_at":null,"author_association":"NONE","body":"I've got a `foobarUpdated` subscription, but I need to authorize the users who subscribe to it as well as validate the variable (if the given id is not a valid foobar id, subscription doesn't make sense). \r\n\r\nIs there a way to deny/cancel a subscription? I'm using `withFilter` but that only works for filtering after the subscription has been initiated."},"comment":{"url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/comments/426357480","html_url":"https://github.com/apollographql/graphql-subscriptions/issues/90#issuecomment-426357480","issue_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/90","id":426357480,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjM1NzQ4MA==","user":{"login":"grantwwu","id":4212965,"node_id":"MDQ6VXNlcjQyMTI5NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4212965?v=4","gravatar_id":"","url":"https://api.github.com/users/grantwwu","html_url":"https://github.com/grantwwu","followers_url":"https://api.github.com/users/grantwwu/followers","following_url":"https://api.github.com/users/grantwwu/following{/other_user}","gists_url":"https://api.github.com/users/grantwwu/gists{/gist_id}","starred_url":"https://api.github.com/users/grantwwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantwwu/subscriptions","organizations_url":"https://api.github.com/users/grantwwu/orgs","repos_url":"https://api.github.com/users/grantwwu/repos","events_url":"https://api.github.com/users/grantwwu/events{/privacy}","received_events_url":"https://api.github.com/users/grantwwu/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T17:18:24Z","updated_at":"2018-10-02T17:18:24Z","author_association":"COLLABORATOR","body":"https://github.com/apollographql/graphql-subscriptions/blob/master/.designs/authorization.md does this help at all?  It's a very old doc, unfortunately I don't really know much about this topic."}}
{"actor":{"display_login":"grantwwu"}}