On Wed, Aug 24, 2011 at 11:10 PM, Joey Hess <jo...@debian.org> wrote: > I guess the fix is to store a postsignin cookie containing the > original query string, and redirect to a postsignin url. I've attached a > blind attempt at a patch doing this. As I don't use httpauth it would be > painful for me to test it -- can you? > > The patch will cleanly apply to version 3.20100815.7. > You could even patch /usr/share/perl5/IkiWiki/Plugins/httpauth.pm directly. >
I patched httpauth.pm directly; by the way, the call to "cgi_savesession" in line 28 of the patch file needs to be qualified as "IkiWiki::cgi_savesession" or ikiwiki.cgi dies with an error. After applying the patch, I can no longer edit the page and I get an error message from the '...?do=postsignin' URL: Error: login failed, perhaps you need to turn on cookies? Indeed, the browser shows no cookie set (except for some myopenid stuff, which should not be relevant since I'm using HTTP auth). Here's my plugin configuration, in case it's relevant: # plugins to add to the default configuration add_plugins => [qw{ 404 attachment autoindex copyright data editdiff edittemplate getsource goodstuff html httpauth license listdirectives map prettydate repolist table tag toc txt websetup }], # plugins to disable disable_plugins => [qw{openid passwordauth}], Thanks for the help! Riccardo -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org