{"action":"created","issue":{"url":"https://api.github.com/repos/liamcurry/passport-steam/issues/37","repository_url":"https://api.github.com/repos/liamcurry/passport-steam","labels_url":"https://api.github.com/repos/liamcurry/passport-steam/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/liamcurry/passport-steam/issues/37/comments","events_url":"https://api.github.com/repos/liamcurry/passport-steam/issues/37/events","html_url":"https://github.com/liamcurry/passport-steam/issues/37","id":156619302,"number":37,"title":"InternalOpenIDError: Failed to verify assertion","user":{"login":"AtlasDev","id":8537327,"avatar_url":"https://avatars.githubusercontent.com/u/8537327?v=3","gravatar_id":"","url":"https://api.github.com/users/AtlasDev","html_url":"https://github.com/AtlasDev","followers_url":"https://api.github.com/users/AtlasDev/followers","following_url":"https://api.github.com/users/AtlasDev/following{/other_user}","gists_url":"https://api.github.com/users/AtlasDev/gists{/gist_id}","starred_url":"https://api.github.com/users/AtlasDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtlasDev/subscriptions","organizations_url":"https://api.github.com/users/AtlasDev/orgs","repos_url":"https://api.github.com/users/AtlasDev/repos","events_url":"https://api.github.com/users/AtlasDev/events{/privacy}","received_events_url":"https://api.github.com/users/AtlasDev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/liamcurry/passport-steam/labels/Help%20Wanted","name":"Help Wanted","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2016-05-24T21:58:48Z","updated_at":"2016-06-12T12:42:41Z","closed_at":null,"body":"Hello,\r\n\r\nI've been running in this issue all day, and I still don't know totally how to fix it.\r\n\r\nI've got this error with this module, both on node 4.4 and node 6.0\r\n```\r\nInternalOpenIDError: Failed to verify assertion\r\n    at D:\\Projects\\csgo\\node_modules\\passport-steam\\node_modules\\passport-openid-node6support\\lib\\passport-openid\\strate\r\ngy.js:184:36\r\n    at Object.openid.verifyAssertion (D:\\Projects\\csgo\\node_modules\\passport-steam\\node_modules\\passport-openid-node6sup\r\nport\\node_modules\\openid\\openid.js:916:14)\r\n    at openid.RelyingParty.verifyAssertion (D:\\Projects\\csgo\\node_modules\\passport-steam\\node_modules\\passport-openid-no\r\nde6support\\node_modules\\openid\\openid.js:65:10)\r\n```\r\n\r\nSo naturally I digged in the source code, and changed this line:\r\n``` JavaScript\r\n  , OpenIDStrategy = require('passport-openid-node6support').Strategy\r\n```\r\nto:\r\n``` Javascript\r\n  , OpenIDStrategy = require('passport-openid').Strategy\r\n```\r\n\r\nThis resolved the issue on node 4.4, but got an error on node 6.0 (that's why that modules is created i guess):\r\n```\r\nerror: An uncaught exception has taken place! TypeError: params.hasOwnProperty is not a function\r\n    at _checkSignatureUsingProvider (D:\\Projects\\csgo\\node_modules\\passport-openid\\node_modules\\openid\\openid.js:1148:15\r\n)\r\n    at _checkSignature (D:\\Projects\\csgo\\node_modules\\passport-openid\\node_modules\\openid\\openid.js:1083:5)\r\n    at _verifyAssertionAgainstProviders (D:\\Projects\\csgo\\node_modules\\passport-openid\\node_modules\\openid\\openid.js:104\r\n7:12)\r\n```\r\n\r\nAnyone has fixed that first issue? There where some discussions with the same issue, but nothing fixed that for me (relevant: #27 ). These are part of my code:\r\n``` JavaScript\r\npassport.use(new SteamStrategy({\r\n\t\treturnURL: 'http://**snap**/api/auth/return',\r\n\t\trealm: 'http://**snap**',\r\n\t\tapiKey: config.get('apiKey'),\r\n\t\tstateless: true\r\n\t},\r\n\tfunction(identifier, profile, done) {\r\n\t\tconsole.log(identifier); //Logging output\r\n\t\tconsole.log(profile);\r\n\t\tprofile.identifier = identifier;\r\n\t\treturn done(null, profile);\r\n\t}\r\n));\r\n```\r\n\r\n``` JavaScript\r\nrouter.route('/')\r\n\t.get(passport.authenticate('steam'));\r\n\r\nrouter.route('/return')\r\n\t.get(passport.authenticate('steam', { failureRedirect: '/' }),\r\n\t\tfunction (req, res) {\r\n\t\t\tconsole.log(req.user);\r\n\t    \tres.redirect('/');\r\n\t\t}\r\n\t);\r\n```"},"comment":{"url":"https://api.github.com/repos/liamcurry/passport-steam/issues/comments/225430343","html_url":"https://github.com/liamcurry/passport-steam/issues/37#issuecomment-225430343","issue_url":"https://api.github.com/repos/liamcurry/passport-steam/issues/37","id":225430343,"user":{"login":"scholtzm","id":2640934,"avatar_url":"https://avatars.githubusercontent.com/u/2640934?v=3","gravatar_id":"","url":"https://api.github.com/users/scholtzm","html_url":"https://github.com/scholtzm","followers_url":"https://api.github.com/users/scholtzm/followers","following_url":"https://api.github.com/users/scholtzm/following{/other_user}","gists_url":"https://api.github.com/users/scholtzm/gists{/gist_id}","starred_url":"https://api.github.com/users/scholtzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scholtzm/subscriptions","organizations_url":"https://api.github.com/users/scholtzm/orgs","repos_url":"https://api.github.com/users/scholtzm/repos","events_url":"https://api.github.com/users/scholtzm/events{/privacy}","received_events_url":"https://api.github.com/users/scholtzm/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T12:42:41Z","updated_at":"2016-06-12T12:42:41Z","body":"Regarding invalid return URL: https://github.com/havard/node-openid/pull/152"}}
{"actor":{"display_login":"scholtzm"}}