summaryrefslogtreecommitdiff
path: root/doc/bugs/openid_postsignin_failure.mdwn
blob: 8015ee0ece05fbe03c708ad8e4137d6d2094c0d8 (plain)

I tried enabling the openid plugin on my site. I tried to log in but got an error when coming back to ikiwiki.cgi: "Error: unknown do parameter". I think this means that do=postsignin isn't handled by CGI.pm.

The URI in question is fairly long, but if you want me to add it here, I can do that.

I didn't really know how to debug this so I grepped for "postsignin" in both openid.pm and passwordauth.pm and found:

IkiWiki/Plugin/openid.pm:               return_to => IkiWiki::cgiurl(do => "postsignin"),
IkiWiki/Plugin/passwordauth.pm:                         IkiWiki::cgi_postsignin($cgi, $session);

Am I barking up the wrong tree? Maybe I'm missing something obvious?

I'm running 1.38 of ikiwiki and the newest CGI::Session, Net::OpenID::Consumer, Crypt::DH, URI-Fetch. --Ethan

The url must not have a setting for openid.mode or openid_identifier in it. So the OpenId plugin didn't know that it was trying to log in. I think this points to an issue with the OpenID server. --[[Joey]]

I put debugging output in openid.pm and it suggests that the verification is taking place successfully. I see "openid.mode=id_res" in the URI. On top of that, it's the same Openid server I use to sign in here on ikiwiki.kitenet.net. --Ethan

Yikes, I don't really have the newest CGI::Session after all.. let me try updating that. --Ethan