You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Recently I fount the module (passport-openid) seems now not supporting POST request issued from OpenID-provider after passing the authentication (here meaning after inputting the username and password), and the relying node.js app side would hang there in fact trapped in the deal loop, further checking shows that it's the openid-passport module not support this POST request type, the relevant code I found are:
In passport-openid's strategy.js:
Strategy.prototype.authenticate = function(req) {
if (req.query['openid.mode'] === 'cancel') { return this.fail({ message: 'OpenID authentication canceled' }); }
//here the code assume, the request to be GET method
and openid module's openid.verifyAssertion function which seems not have a good support for POST request.
So is there any plan to support the POST request ?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
@jaredhanson Hi Jared, Thanks for building such a useful library. In my case, the OP is issuing a POST reuest. As @yaozaiyong mentioned, any plans to handle the POST request and parse the form data from request body.
vbernabe
added a commit
to vbernabe/passport-openid
that referenced
this issue
Nov 15, 2014
Hello,
Recently I fount the module (passport-openid) seems now not supporting POST request issued from OpenID-provider after passing the authentication (here meaning after inputting the username and password), and the relying node.js app side would hang there in fact trapped in the deal loop, further checking shows that it's the openid-passport module not support this POST request type, the relevant code I found are:
In passport-openid's strategy.js:
Strategy.prototype.authenticate = function(req) {
if (req.query['openid.mode'] === 'cancel') { return this.fail({ message: 'OpenID authentication canceled' }); }
//here the code assume, the request to be GET method
and openid module's openid.verifyAssertion function which seems not have a good support for POST request.
So is there any plan to support the POST request ?
Thanks a lot.
The text was updated successfully, but these errors were encountered: