Tags:
create new tag
view all tags

Question

I recently switched to using template login (from Apache login) on my TWiki and ran into a problem. I have several scripts that update the information on my TWiki using curl. When using Apache login, that worked very well since you can specify user name and password to curl, but it ceased working when I switched to template login. Does anyone know how to script access (both read and edit/save) to TWiki when using template login?

Thanks.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Core 5
Web server: Apache 2.2.2
Perl version: 5.8.8
Client OS: FC5
Web Browser: Firefox 1.0.5.6
Categories: Authentication

-- DavidBright - 01 Sep 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I don't think there's any way to do that. Curl passes the username and password in HTTP headers, and by the time TemplateLogin gets a look in that info has probably gone. If you can find it in CGI, then it wouldn't be hard to use it.

Note that if you have an existing session, you can pass the session ID in the TWIKISID form parameter.

-- CrawfordCurrie - 04 Oct 2006

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-11-21 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.