{"action":"opened","issue":{"url":"https://api.github.com/repos/maticzav/graphql-shield/issues/49","repository_url":"https://api.github.com/repos/maticzav/graphql-shield","labels_url":"https://api.github.com/repos/maticzav/graphql-shield/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/maticzav/graphql-shield/issues/49/comments","events_url":"https://api.github.com/repos/maticzav/graphql-shield/issues/49/events","html_url":"https://github.com/maticzav/graphql-shield/issues/49","id":327541512,"number":49,"title":"how to get passport's Auth info in this middleware","user":{"login":"geminiyellow","id":929878,"avatar_url":"https://avatars2.githubusercontent.com/u/929878?v=4","gravatar_id":"","url":"https://api.github.com/users/geminiyellow","html_url":"https://github.com/geminiyellow","followers_url":"https://api.github.com/users/geminiyellow/followers","following_url":"https://api.github.com/users/geminiyellow/following{/other_user}","gists_url":"https://api.github.com/users/geminiyellow/gists{/gist_id}","starred_url":"https://api.github.com/users/geminiyellow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geminiyellow/subscriptions","organizations_url":"https://api.github.com/users/geminiyellow/orgs","repos_url":"https://api.github.com/users/geminiyellow/repos","events_url":"https://api.github.com/users/geminiyellow/events{/privacy}","received_events_url":"https://api.github.com/users/geminiyellow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T01:32:01Z","updated_at":"2018-05-30T01:32:01Z","closed_at":null,"author_association":"NONE","body":"ref: https://github.com/prismagraphql/graphql-middleware/issues/8#issuecomment-392764010\r\n\r\nhi all, i use express + passport-oauth2 in my web.\r\nand i want to use graphql to wrap exist restapi, with permission check.\r\n\r\ni follow the examples/permissions , but in this line\r\n\r\nhttps://github.com/prismagraphql/graphql-middleware/blob/6889d229181e49b4e8711d22a960900b103c2632/examples/permissions/index.js#L40\r\n\r\nthe `context.request.isAuthenticated()` alway false, \r\nand i debug into the code, it looks like the `this` have nothing about auth info.\r\n\r\nanybody can tell me how to use this library whit passport ?"}}
{"actor":{"display_login":"geminiyellow"}}