{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/apollo-server/issues/97","repository_url":"https://api.github.com/repos/apollostack/apollo-server","labels_url":"https://api.github.com/repos/apollostack/apollo-server/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-server/issues/97/comments","events_url":"https://api.github.com/repos/apollostack/apollo-server/issues/97/events","html_url":"https://github.com/apollostack/apollo-server/issues/97","id":171293934,"number":97,"title":"graphql along with existing hapijs routes","user":{"login":"BhaskaranR","id":11024551,"avatar_url":"https://avatars.githubusercontent.com/u/11024551?v=3","gravatar_id":"","url":"https://api.github.com/users/BhaskaranR","html_url":"https://github.com/BhaskaranR","followers_url":"https://api.github.com/users/BhaskaranR/followers","following_url":"https://api.github.com/users/BhaskaranR/following{/other_user}","gists_url":"https://api.github.com/users/BhaskaranR/gists{/gist_id}","starred_url":"https://api.github.com/users/BhaskaranR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BhaskaranR/subscriptions","organizations_url":"https://api.github.com/users/BhaskaranR/orgs","repos_url":"https://api.github.com/users/BhaskaranR/repos","events_url":"https://api.github.com/users/BhaskaranR/events{/privacy}","received_events_url":"https://api.github.com/users/BhaskaranR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-16T00:28:51Z","updated_at":"2016-08-16T01:21:53Z","closed_at":null,"body":"Hi,\r\n I currently have some rest services which i don’t want to convert to graphql. For the new services i would like to use GraphQL. \r\n\r\nI tried registering both hapijs rest api routes and graphql. I could still access the rest api but could not access graphql route unless the auth strategy is commented. I need the auth for my existing routes. How do I configure auth for graphql route?\r\n\r\nserver.auth.strategy('jwt', 'jwt', true,\r\n        { key: config.get(\"jwtSecret\"),\r\n            validateFunc: validate,\r\n            verifyOptions: { ignoreExpiration: true }\r\n        });\r\n\r\nserver.register({\r\n   register: new apollo.ApolloHAPI(),\r\n   options: graphqlOptions,\r\n   routes: { prefix: '/graphql' },\r\n});\r\n\r\nserver.register({\r\n   register: new apollo.GraphiQLHAPI(),\r\n   options: { endpointURL: '/graphql' },\r\n});\r\n\r\n   server.route(user.routes);\r\n   server.route(device.routes);\r\n   server.route(posts.routes);"},"comment":{"url":"https://api.github.com/repos/apollostack/apollo-server/issues/comments/239976754","html_url":"https://github.com/apollostack/apollo-server/issues/97#issuecomment-239976754","issue_url":"https://api.github.com/repos/apollostack/apollo-server/issues/97","id":239976754,"user":{"login":"helfer","id":6569980,"avatar_url":"https://avatars.githubusercontent.com/u/6569980?v=3","gravatar_id":"","url":"https://api.github.com/users/helfer","html_url":"https://github.com/helfer","followers_url":"https://api.github.com/users/helfer/followers","following_url":"https://api.github.com/users/helfer/following{/other_user}","gists_url":"https://api.github.com/users/helfer/gists{/gist_id}","starred_url":"https://api.github.com/users/helfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helfer/subscriptions","organizations_url":"https://api.github.com/users/helfer/orgs","repos_url":"https://api.github.com/users/helfer/repos","events_url":"https://api.github.com/users/helfer/events{/privacy}","received_events_url":"https://api.github.com/users/helfer/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T01:21:53Z","updated_at":"2016-08-16T01:21:53Z","body":"Can you describe the problem a bit more accurately? Do you not want to authenticate the requests made to the graphql route? If that's your issue, I think it might be a HAPI configuration problem, not an issue with Apollo Server."}}
{"actor":{"display_login":"helfer"}}