jaredhanson / passport-google

Google (OpenID) authentication strategy for Passport and Node.js.
MIT License
149 stars 80 forks source link

Failed to verify assertion (message: Invalid association handle) #28

Open binarykitchen opened 10 years ago

binarykitchen commented 10 years ago

I did not change the code for 5 months and now, suddenly I cannot log into my app through Google.

    Failed to verify assertion (message: Invalid association handle)
        at /home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/lib/passport-openid/strategy.js:184:36
        at /home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:1069:12
        at /home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:1193:16
        at /home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:1247:14
        at openid.loadAssociation (/home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:111:5)
        at _checkSignatureUsingAssociation (/home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:1239:10)
        at _checkSignature (/home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:1229:5)
        at _verifyAssertionAgainstProviders (/home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:1189:12)
        at /home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:1154:7
        at /home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:686:7
    ---------------------------------------------
        at ClientRequest.<anonymous> (/home/michael.heuberger/binarykitchen/code/signdna/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:262:9)
        at g (events.js:180:16)
        at ClientRequest.emit (events.js:95:17)
        at parserOnIncomingClient (http.js:1692:21)
        at parserOnHeadersComplete (http.js:121:23)
        at socketOnData (http.js:1587:20)

part of the error in the URL is

GET /user/login/google/return?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fud&openid.response_nonce=2014-09-25T00%3A31%3A42ZOZ2dCyQr5pT66Q&openid.return_to=https%3A%2F%2Flocalhost%3A8080%2Fuser%2Flogin%2Fgoogle%2Freturn&openid.invalidate_handle=1.AFD_5tlhrZgoCozSrfzHDHGNqpWBJG6ywXuDlUhuqcXeTDOrpBlvffWPSZ6hAgFgeY3QfPTbPw0vdfPW9FMeM7VHQ5Y&openid.assoc_handle=1.AMlYA9V5PEydjlH2y0Yalx0gL2mQtia6tP0KbPwJbbmY8LqrpEY4wn8tFRWDaBO9&openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle%2Cns.ext1%2Cext1.mode%2Cext1.type.firstname%2Cext1.value.firstname%2Cext1.type.lastname%2Cext1.value.lastname%2Cext1.type.email%2Cext1.value.email&...

Any clues?