{"action":"created","issue":{"url":"https://api.github.com/repos/hasura/graphql-engine/issues/890","repository_url":"https://api.github.com/repos/hasura/graphql-engine","labels_url":"https://api.github.com/repos/hasura/graphql-engine/issues/890/labels{/name}","comments_url":"https://api.github.com/repos/hasura/graphql-engine/issues/890/comments","events_url":"https://api.github.com/repos/hasura/graphql-engine/issues/890/events","html_url":"https://github.com/hasura/graphql-engine/issues/890","id":374682146,"node_id":"MDU6SXNzdWUzNzQ2ODIxNDY=","number":890,"title":"hook auth stopped working after 0.26","user":{"login":"patcito","id":26435,"node_id":"MDQ6VXNlcjI2NDM1","avatar_url":"https://avatars2.githubusercontent.com/u/26435?v=4","gravatar_id":"","url":"https://api.github.com/users/patcito","html_url":"https://github.com/patcito","followers_url":"https://api.github.com/users/patcito/followers","following_url":"https://api.github.com/users/patcito/following{/other_user}","gists_url":"https://api.github.com/users/patcito/gists{/gist_id}","starred_url":"https://api.github.com/users/patcito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcito/subscriptions","organizations_url":"https://api.github.com/users/patcito/orgs","repos_url":"https://api.github.com/users/patcito/repos","events_url":"https://api.github.com/users/patcito/events{/privacy}","received_events_url":"https://api.github.com/users/patcito/received_events","type":"User","site_admin":false},"labels":[{"id":984757595,"node_id":"MDU6TGFiZWw5ODQ3NTc1OTU=","url":"https://api.github.com/repos/hasura/graphql-engine/labels/c/server","name":"c/server","color":"f2a4ea","default":false},{"id":967699895,"node_id":"MDU6TGFiZWw5Njc2OTk4OTU=","url":"https://api.github.com/repos/hasura/graphql-engine/labels/k/bug","name":"k/bug","color":"d73a4a","default":false},{"id":1035992001,"node_id":"MDU6TGFiZWwxMDM1OTkyMDAx","url":"https://api.github.com/repos/hasura/graphql-engine/labels/p/urgent","name":"p/urgent","color":"e5690b","default":false}],"state":"closed","locked":false,"assignee":{"login":"0x777","id":6562944,"node_id":"MDQ6VXNlcjY1NjI5NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6562944?v=4","gravatar_id":"","url":"https://api.github.com/users/0x777","html_url":"https://github.com/0x777","followers_url":"https://api.github.com/users/0x777/followers","following_url":"https://api.github.com/users/0x777/following{/other_user}","gists_url":"https://api.github.com/users/0x777/gists{/gist_id}","starred_url":"https://api.github.com/users/0x777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x777/subscriptions","organizations_url":"https://api.github.com/users/0x777/orgs","repos_url":"https://api.github.com/users/0x777/repos","events_url":"https://api.github.com/users/0x777/events{/privacy}","received_events_url":"https://api.github.com/users/0x777/received_events","type":"User","site_admin":false},"assignees":[{"login":"0x777","id":6562944,"node_id":"MDQ6VXNlcjY1NjI5NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6562944?v=4","gravatar_id":"","url":"https://api.github.com/users/0x777","html_url":"https://github.com/0x777","followers_url":"https://api.github.com/users/0x777/followers","following_url":"https://api.github.com/users/0x777/following{/other_user}","gists_url":"https://api.github.com/users/0x777/gists{/gist_id}","starred_url":"https://api.github.com/users/0x777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x777/subscriptions","organizations_url":"https://api.github.com/users/0x777/orgs","repos_url":"https://api.github.com/users/0x777/repos","events_url":"https://api.github.com/users/0x777/events{/privacy}","received_events_url":"https://api.github.com/users/0x777/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-27T19:51:47Z","updated_at":"2018-10-29T16:14:24Z","closed_at":"2018-10-28T12:38:06Z","author_association":"CONTRIBUTOR","body":"Here is what my webhook returns:\r\n\r\n` { 'X-Hasura-Role': 'anon' }`\r\n\r\nAnd the error I get:\r\n\r\n```\r\n{\r\n  \"errors\": [\r\n    {\r\n      \"path\": \"$\",\r\n      \"error\": \"Invalid response from authorization hook: Error in $: expected [a], encountered Object\",\r\n      \"code\": \"unexpected\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nThis happens on all my queries, works fine on v0.25."},"comment":{"url":"https://api.github.com/repos/hasura/graphql-engine/issues/comments/433973258","html_url":"https://github.com/hasura/graphql-engine/issues/890#issuecomment-433973258","issue_url":"https://api.github.com/repos/hasura/graphql-engine/issues/890","id":433973258,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzk3MzI1OA==","user":{"login":"patcito","id":26435,"node_id":"MDQ6VXNlcjI2NDM1","avatar_url":"https://avatars2.githubusercontent.com/u/26435?v=4","gravatar_id":"","url":"https://api.github.com/users/patcito","html_url":"https://github.com/patcito","followers_url":"https://api.github.com/users/patcito/followers","following_url":"https://api.github.com/users/patcito/following{/other_user}","gists_url":"https://api.github.com/users/patcito/gists{/gist_id}","starred_url":"https://api.github.com/users/patcito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcito/subscriptions","organizations_url":"https://api.github.com/users/patcito/orgs","repos_url":"https://api.github.com/users/patcito/repos","events_url":"https://api.github.com/users/patcito/events{/privacy}","received_events_url":"https://api.github.com/users/patcito/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T16:14:24Z","updated_at":"2018-10-29T16:14:24Z","author_association":"CONTRIBUTOR","body":"@0x777 I don't always return {\"x-hasura-role\":\"anon\"}, only when the jwt token has expired. However, can I bypass the webhook when the client already knows current role is anon? (ie, when user is not logged in on client)."}}
{"actor":{"display_login":"patcito"}}