{"action":"created","issue":{"url":"https://api.github.com/repos/voicis/nodebb-plugin-sso-battle.net/issues/1","repository_url":"https://api.github.com/repos/voicis/nodebb-plugin-sso-battle.net","labels_url":"https://api.github.com/repos/voicis/nodebb-plugin-sso-battle.net/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/voicis/nodebb-plugin-sso-battle.net/issues/1/comments","events_url":"https://api.github.com/repos/voicis/nodebb-plugin-sso-battle.net/issues/1/events","html_url":"https://github.com/voicis/nodebb-plugin-sso-battle.net/issues/1","id":196120881,"number":1,"title":"Error ","user":{"login":"kubaboski","id":10576042,"avatar_url":"https://avatars.githubusercontent.com/u/10576042?v=3","gravatar_id":"","url":"https://api.github.com/users/kubaboski","html_url":"https://github.com/kubaboski","followers_url":"https://api.github.com/users/kubaboski/followers","following_url":"https://api.github.com/users/kubaboski/following{/other_user}","gists_url":"https://api.github.com/users/kubaboski/gists{/gist_id}","starred_url":"https://api.github.com/users/kubaboski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubaboski/subscriptions","organizations_url":"https://api.github.com/users/kubaboski/orgs","repos_url":"https://api.github.com/users/kubaboski/repos","events_url":"https://api.github.com/users/kubaboski/events{/privacy}","received_events_url":"https://api.github.com/users/kubaboski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-16T18:06:18Z","updated_at":"2016-12-16T19:34:52Z","closed_at":null,"body":"Hi, I get this error on callback\r\n/auth/battlenet/callback\r\nInternal server error\r\n\r\n```\r\n16/12 18:04 [9605] - \u001B[31merror\u001B[39m: /auth/battlenet/callback\r\n AuthorizationError: Internal server error\r\n    at OAuth2Strategy.authenticate (/opt/bitnami/apps/gadia/htdocs/node_modules/passport-oauth2/lib/strategy.js:131:25)\r\n    at attempt (/opt/bitnami/apps/gadia/htdocs/node_modules/passport/lib/middleware/authenticate.js:348:16)\r\n    at authenticate (/opt/bitnami/apps/gadia/htdocs/node_modules/passport/lib/middleware/authenticate.js:349:7)\r\n    at Layer.handle [as handle_request] (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/layer.js:95:5)\r\n    at next (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/route.js:131:13)\r\n    at Route.dispatch (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/route.js:112:3)\r\n    at Layer.handle [as handle_request] (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/layer.js:95:5)\r\n    at /opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:277:22\r\n    at Function.process_params (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:330:12)\r\n    at next (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:271:10)\r\n    at Function.handle (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:176:3)\r\n    at router (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:46:12)\r\n    at Layer.handle [as handle_request] (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/layer.js:95:5)\r\n    at trim_prefix (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:312:13)\r\n    at /opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:280:7\r\n    at Function.process_params (/opt/bitnami/apps/gadia/htdocs/node_modules/express/lib/router/index.js:330:12)\r\n```"},"comment":{"url":"https://api.github.com/repos/voicis/nodebb-plugin-sso-battle.net/issues/comments/267677555","html_url":"https://github.com/voicis/nodebb-plugin-sso-battle.net/issues/1#issuecomment-267677555","issue_url":"https://api.github.com/repos/voicis/nodebb-plugin-sso-battle.net/issues/1","id":267677555,"user":{"login":"voicis","id":6721493,"avatar_url":"https://avatars.githubusercontent.com/u/6721493?v=3","gravatar_id":"","url":"https://api.github.com/users/voicis","html_url":"https://github.com/voicis","followers_url":"https://api.github.com/users/voicis/followers","following_url":"https://api.github.com/users/voicis/following{/other_user}","gists_url":"https://api.github.com/users/voicis/gists{/gist_id}","starred_url":"https://api.github.com/users/voicis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voicis/subscriptions","organizations_url":"https://api.github.com/users/voicis/orgs","repos_url":"https://api.github.com/users/voicis/repos","events_url":"https://api.github.com/users/voicis/events{/privacy}","received_events_url":"https://api.github.com/users/voicis/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T19:34:52Z","updated_at":"2016-12-16T19:34:52Z","body":"Looks like the callback url might be the issue, it is http (not https). OAuth requires SSL."}}
{"actor":{"display_login":"voicis"}}