Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] SWISH authentication on Intranet/MediaWiki

From: Robin Gist <djkryptyk(at)not-real.gmail.com>
Date: Wed May 16 2007 - 05:33:17 GMT
now that saved a few hours of debugging time.

much thanks, Bill.


On 5/15/07, William M Conlon <bill@tothept.com> wrote:
>
> The only trick is to set up a callback function to exclude the logout
> link, something like:
>
>          test_url    => sub {
>                 my  $ok =  !($_[0]->path =~ /logout.php/);
>                 return 1 if $ok;
>         }
>
> Bill
>
>
> On May 15, 2007, at 9:40 PM, Robin Gist wrote:
>
> >
> > Hello Bill -- I was thinking about exactly the same thing, writing
> > a login script that takes the params off of the URL and returns a
> > cookie.  At this point, I'll cheat.  :)
> >
> > Any advice or caveats?
> >
> > thanks for the reply, Bill.
> >
> > regards,
> > Robin
> >
> > (btw, see your in Palo Alto -- I'm over in Pleasanton)
> >
> >
> > On 5/15/07, William M. Conlon < bill@tothept.com> wrote:1. Enable
> > cookies in the spider config
> > 2. use the get_password callback function for realm
> > authentication.  but probably not useful for you.
> > 3. I cheat and have a backdoor to let swish-e  authenticate using a
> > GET request.
> >
> > --
> > bill
> >
> > ---------- Original Message -----------
> > From: "Robin Gist" < djkryptyk@gmail.com>
> > To: users@lists.swish-e.org
> > Sent: Tue, 15 May 2007 16:58:55 -0700
> > Subject: [swish-e] SWISH authentication on Intranet/MediaWiki
> >
> > > Hello -- I've been a user of swish for a little while now.  I really
> > > like it, so I want to use it for spidering a MediaWiki-based
> > > intranet, which uses a form-based authentication (instead of Basic
> > > HTTP Auth).  Unfortunately
> > > (from my perspective), it is POST-based instead of GET-based auth,
> > > so I cannot easily mock up a URL with a username and password.
> > >
> > > Has anyone out there tackled POSTED form-based authentication with
> > > swish, in particular with MediaWiki, or have an idea about how I may
> > > approach this problem??  I've been chasing this down for the better
> > > part of a day (from both sides).    When resolved, I'll happily
> > > share my results with the rest of the class.
> > >
> > > Many thanks
> > > Robin
> > ------- End of Original Message -------
> >
> > _______________________________________________
> > Users mailing list
> > Users@lists.swish-e.org
> > http://lists.swish-e.org/listinfo/users
> >
> > _______________________________________________
> > Users mailing list
> > Users@lists.swish-e.org
> > http://lists.swish-e.org/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users@lists.swish-e.org
> http://lists.swish-e.org/listinfo/users
>


_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed May 16 01:33:14 2007